Tutorials




Effectively Using Materialized Views in Ruby on Rails
It's every developer's nightmare: SQL queries that get large and unwieldy. This can happen fairly quickly with the addition of multiple joins, a subquery and some complicated filtering logic. I have personally seen queries grow to nearly one hundr...


Organized Rails application with interactors and utilities
If you have ever used Rails, you know that there is no better thing for quick prototyping. It doesn’t matter how easy is your favorite framework for that. Rails will be dozens of times easier, especially giving the fact it is now a mature solution...



Managing Rails schema and data migrations without losing your mind
As time goes by, you’ll need to change the data model for your software. Rails makes this extremely easy to do, but leaves much of the day-to-day process to you to sort out (the principle of Sharp Knifes).Once you’re past the initial scaffolding s...

Duplicating models with complex nested associations
I was recently working on an app that required duplicating an Active Record model and its associations. But the complex structure of these.This is the model I needed to duplicate (a simplified version of it). I started off by installing the popul...