Tutorials

How to use railway-oriented business transactions to unclutter your Rails controllers - Remi Mercier
When your Rails app needs to handle multiple steps, your controllers’ methods can become a mess.Don’t despair, though. You can delegate sequential steps to business transactions and Marie-Kondo those messy controllers. I’ll show you how.Let’s keep...

Testing railway-oriented business transactions with Rspec - Remi Mercier
Railway-oriented business transactions are a great way to unclutter your Rails controllers. We’ve already seen how to write ‘em. Now let’s see how we can test ‘em. I’ll be using dry-transaction as a business transaction DSL and RSpec for testing. ...

Track email statuses in Ruby on Rails with SendGrid
Learn how to track emails you sent and if they bounced or were delivered using SendGrid and Ruby on Rails.When your application sends emails it is useful to know what happens to those emails, like whether it has been delivered or opened. Or, somet...






Pulling the trigger: How to update counter caches in your Rails app without Active Record callbacks
In this article, we experiment with triggers as a tool for keeping aggregated data consistent when using Active Record and your favorite SQL database. Instead of using sophisticated tools such as ElasticSearch for filtering and searching, we will ...

How to Stay Up to Date With Your Rails Application
An outdated Rails application doesn't happen overnight. In FastRuby.io we work with a lot of clients who have outdated Rails applications and we help them upgrade to a newer Rails version. In this article I share some things that you could start d...