...

December 09, 2019

Rails 6 introduces insert_all / upsert_all methods

Having methods that can perform database operations in bulk is always a plus considering the amount of efficiency they add to such…
...

December 05, 2019

Rails 6 adds before after methods to compare datetime

Before Rails 6.0, the date/time are compared by using the equality operators like less than (<) or greater than (>), etc. Sometimes, date…
...

December 04, 2019

Rails 6 adds reselect on ActiveRecord Relation

Sometimes, we need to remove selected columns and select new columns for the query being done. Rails 6 introduces reselect on ActiveRecord…
...

December 03, 2019

Rails 6 adds delete_by and destroy_by methods on ActiveRecord

Often we need to find records based on certain conditions and then delete those records. To perform this, ActiveRecord has introduced…
...

December 02, 2019

Format custom SQL queries in Rails

While Rails comes with ActiveRecords that saves us from writing some scary (at least to me :)) SQL logic but still there are times when we…
...

November 25, 2019

Set up a Twilio account with phone numbers

Twilio is a cloud-based platform as a service that provides voice, SMS, video and WhatsApp communication services. The best part is, it can…
...

November 23, 2019

Rails 6 ActiveSupport adds private option to delegated methodslevel force_ssl option

Rails 6 is recently released with a lot of features. One of them is ActiveSupport adding support for private option on delegated methods to…
...

November 22, 2019

Rails 6 deprecates controller level force_ssl option

Previously, we were able to force_ssl to specific controller actions by using force_ssl callback at controller level. Rails 6 deprecates…
...

November 19, 2019

Rails IP-Based access restriction with route constraints

Sometimes we need to limit access based on IP address and whitelist only certain IP addresses to access a route. We can use rails routing…
...

August 27, 2019

How we dealt with R14 – Memory Quota Exceeded errors on Heroku

1 – Investigation to zero in on the real culprit We started with observing resource utilization graphs for our dynos. As we all know that…
...

August 23, 2019

Deploying Rails Application on Amazon AWS – Part I

Amazon AWS is one of the most widely used deployment service. Other alternative that we generally use is Heroku. Heroku is also a good…
...

May 21, 2019

Specterr – An Error Reporting tool Which takes care of your data privacy

Recently i.e. on 10th of August 2019, I gave a talk in a Regional Ruby Conference here in Pune (Deccan Ruby Conf). In this blog, I will try…
ript>