The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Understanding Ruby: String Encoding, ASCII & Unicode
Do you know the difference between ASCII & Unicode? https://www.rubyguides.com/2019/05/ruby-ascii-unicode/
Vandal - ActiveRecord force destroy records with all related associations.
A small gem that helps to delete an ActiveRecord instance or collection with associations (skipping callbacks or validations). It may be useful to remove broken data on test servers or locally. [more inside]
Choosing Ruby On Rails For Your Next Web Development
Choosing Ruby On Rails For Your Next Web Development Project is the 70 pages-long single resource on Ruby on Rails covering all the main topics related to the framework. Written from a business perspective, aimed to help product owners, startup founders, and C-level executives make better decisions when it comes to web development. You can read it here: Ruby On Rails Development Guide
Accessing Google Sheets with Ruby
If you have some data in Google Sheets (perhaps you have a team collaborating there) and you’d like to use that data in your Ruby applications, this short video tutorial will show you how.
Ruby PaaS Hosting in Multi-Cloud
Explore the possibilities of Ruby PaaS hosting services from Jelastic Multi-Cloud: easy deployment, automatic vertical and horizontal scaling, pre-configured stacks with versioning, out-of-box frameworks support, intuitive management and lots of other benefits https://jelastic.com/blog/ruby-paas-hosting/
Ruby on Rails vs Node JS
Node.js and Ruby on Rails are two popular solutions used in web development. Check which technology is better for your app Ruby on Rails vs Node.js comparision
tty-prompt v0.19.0 fresh look
The newest tty-prompt changes the UI elements look & feel to be even more intuitive. It now lets you navigate the select and multi_select prompts by page. It also allows you to limit the number of selected items in the multi_select prompt. Enjoy!
Client Side Form Validation With Stimulus and Rails
Client side form validation is fairly easy to do with a framework such as Angular or Ember, but how can we get client validation with just Rails and Stimulus? With a sprinkling of Javascript, we can see just how easy it is to add some client side validation. [more inside]
Redirecting to static webpacker Content With Rails
With the release of Rails 6, webpacker is the new default compilation pipe for Javascript assets. Learn how to create a standalone widget file which redirects to webpacker compiled assets. [more inside]
simple helper to get proper redirect :back url
how to get proper URL to :back page: https://github.com/igorkasyanchuk/awesome_back_url [more inside]
rubocop-config-prettier
I created rubocop-config-prettier gem to turn off all rules that are unnecessary or might conflict with prettier plugin ruby.
Ruby 2.7 adds Enumerable#filter_map
Ruby adds filter_map as a shorthand for filter+map [more inside]
Ruby mixins explained
How to use ruby mixins for drying up code. https://whatraghulearned.today/2019/05/23/ruby-mixins-explained/
A toolset for building serverless Ruby apps with AWS Lambda
A set of commands to help you develop, locally test, and deploy serverless Ruby apps to AWS Lambda. https://www.cookieshq.co.uk/posts/a-useful-tool-for-building-serverless-ruby-apps-with-aws-lambda
How to Play MP3 Files with Ruby, VLC, and the FFI Module
Did you know that you can use C library functions from Ruby without writing a line of C code? Read this article to learn how: https://www.rubyguides.com/2019/05/ruby-ffi/
A rocket launcher called Sidekiq 🚀
This post is about how Sidekiq Pro has changed InvoiceXpress asynchronous operations. Simple configuration tutorial, tips and best practices. [more inside]
A Modular RuboCop
Here’s a short overview of the recent efforts to break down RuboCop into multiple gems thus improving the structure and the long-term maintainability of the project.
Rails 6 deprecates update_attributes and update_attributes!
Rails 6 has deprecated update_attributes and update_attributes! in favor of update and update! [more inside]
Serverless Ruby on AWS Lambda with the Jets framework
AWS Lambda released support for Ruby back in November 2018. In this post you will learn how to get started building serverless Ruby applications on Lambda using the Jets framework by building an SMS service that replies with dad jokes.