All Stories
Sidekiq By Example : Ruby's background worker
What is the best way of handling background jobs in Rails, (maybe) using sidekiq.
In Rails, Sidekiq, Nov 28, 2019Run seed data only on first Docker instance up
Q: Do we need to run rails db:seed, rails db:migrate every time the deployment happen? Ans - Absolutely no. rails db:seed should only run for the first time i.e. first deployment. But...
In Rails, Nov 22, 2019HTTP request response headers
At the end browser talks in the language of HTTP request. But we really know minimal about it.
In Rails, Http, Aug 20, 2019Rails 6 adds *_previously_was attributes method
Rails had previous_changes method to track value of object before and after save.
In Rails, new release, Aug 02, 2019Scopes in Rails
Recently I was calling create method on an active-record model object. But it failed in validation, because the provided foreign_key_id was not present in the associated table.
In Rails, Scopes, Jul 11, 2019String Comparison: StringInquirer
Generally we use ==/===/eql?/equal? for string comparison in Rails.It does work in all scenarios we needed. But we often tend to look how same things can be done in more clean ways or...
In Rails, Ruby, Jul 07, 2019Squasher: Replacing old migrations
Too many migrations in application makes it painful. Sometimes they are written a long time back, that now you do not even remember. At the point you might want to replace them with s...
In Rails, Migrations, Jun 28, 2019Modify a gem and use it in Rails
Sometimes a situation arises where we need to modify a gem according to our requirement and then successfully integrate into our project. Let’s find out!
In Rails, Gem, Jun 28, 2019