Read More

Cache or Bust

Ahh, the Rails cache. A funny thing about caching— it’s really important. Rails has a fancy little cache mechanism that you need to know three things about. Caching is a big topic, and this will […]
Read More
Loading an Auto

Rails Magic Autoload

Rails Autoloading is what happens in the background that most developers don’t even think about. Rails Autoload is something that is important for you to know about. Rails will automatically load certain files your Rails app application when it boots up.

Read More
Who Is N+1

Who Is N+1?

N+1 queries need to be solved in Ruby on Rails by identifying where the Active Relation object is created and adding a joins or includes to prefetch eagerload to optimize ActiveRecord just-in-time loading.

Read More

Identity Crisis

Javascript developers talk about the hoist, where a reference to a variable inside of a given scope in a section of code below affects code above it, effectively hoisting the variable up into the reserved namespace. Did you know that Rails has its own hoist effect?

Read More

Upgrading to Rails 6.0

As with all upgrades, remember to pay attention to your deprecation warnings in Rails 5.2 before attempting to switch your Gemfile. Rails 6.0 is a someone esoteric upgrade in which a few features get added […]