#ruby
Read more stories on Hashnode
Articles with this tag
Sometimes, we may want a method that is expected to work with an array input argument. But as you know, Ruby is a duck-typed language, and it doesn't · I...
Strict loading is a feature in Rails that helps you avoid lazy loading and N+1 queries by raising an error when you try to access an association that ·...
Every Rails developers know about ActiveRecord callbacks. But they are like double-edge swords. · In one of my recent projects, I came across a model...
Learn how to use generated columns in Rails to improve performance and simplify your code. · What are generated columns? Generated columns are columns in...
Learn how to use method arguments in before actions in Rails to make your controllers more flexible. · There are times when you need to pass arguments to...
A new feature in Rails 7.2 allows you to rate limit your controller actions easily. · With the release of Rails 7.2, some new features have been added to...