Automatically Prepend Commit Messages with Branch Names in Git
A simple way to prepend commit messages with branch names in Git.
Sort Your Rails Models By The Order of their Associations
Sort your Rails models by the order of their belongs_to associations using ActiveRecord::Reflection.
Shaping Rails to Your Needs, Customizing Rails Generators using Thor Templates
Templates are an easy way to customize your Rails generators to fix repetitive tasks and make your life easier.
Rails 7 Introduces Default Health Check Controller
Rails 7 now introduces a default health check endpoint for health checks.
Rails initializers you don't know about - Inflections
Rails comes with a lot of initializers. In this post, we will look at the inflections.rb initializer and how we can use it.
Rails 7.1 db:prepare to load schema if the database already exists but is empty
Rails 7 introduces a new feature to allow db:prepare to load schema if the database already exists but is empty. Also, it will dump the schema after migrations are run.
Rails allow opting out of the SameSite cookie attribute when setting a cookie
Rails 7 introduces a new feature to allow opting out of the SameSite cookie attribute when setting a cookie.
Rails "ActionController::Parameters.to_h" can now receive a block
ActionController::Parameters.to_h will now receive a block just like Hash#to_h and achieve parity. This gives the ability to customize the way parameters are passed to the controller.
The Ultimate Guide to Gemfile and Gemfile.lock
In-depth overview of what a Gemfile is and how a Gemfile works.