Tutorials


Reactive frontend UI components for Rails in pure Ruby
Motion allows you to build reactive, real-time frontend UI components in your Rails application using pure Ruby.Plays nicely with the Rails monolith you have.Peacefully coexists with your existing tech: Strong Parameters, Turbolinks, Trix, React, ...

Why validation matchers are the only Shoulda matchers I use
If you’re unfamiliar with Shoulda matchers, the premise, from the GitHub description, is: “Shoulda Matchers provides RSpec- and Minitest-compatible one-liners to test common Rails functionality that, if written by hand, would be much longer, more ...

Understanding and Implementing Bubble Sort in Ruby
You'll probably never need to implement bubble sort from scratch. Just call Array#sort! But sorting algorithms are a popular interview topic for a reason. They ask a bigger question: "Sure, you know what your code does, but do you know how it work...


How we scaled async workload processing at GitLab.com using Sidekiq | GitLab
Sidekiq was a great tool for async processing until it couldn't keep up. Here's how we made it scale........GitLab is a Ruby-on-Rails application that processes a lot of data. Much of this processing can be done asynchronously, and one of the solu...



Advanced Active Record: Using Subqueries in Rails
Active Record provides a great balance between the ability to perform simple queries simply, and also the ability to access the raw SQL sometimes required to get our jobs done. In this article, we will see a number of real-life examples of busines...

Make use of your Github Actions minutes for security checking Rails PRs
If you're using Github to host your Rails projects, you might be interested in a quick and easy way to add security checks to your PRs, via Github Actions.Github Actions, if you're not familiar with them, are like little CI tasks that can run on c...