Ruby in Rails
  • Home
  • Rails
  • Ruby
  • About
GitHub icon LinkedIn icon
Subscribe

Rails

A collection of 87 posts

Rails

Rails Soft Delete with Paranoia gem

Sometimes, we need to delete records logically but not physically. Paranoia gem allows us to soft delete records. Records are marked as deleted by a column in a table. Article helps understand how

Akshay Mohite Akshay Mohite 4 min read
Rails

Rails ActiveAdmin N+1 query optmization for controller actions

ActiveAdmin is one of the most used Admin interface with the Rails applications. It provides an easy way to view, create, update or destroy records. When a model is registered with ActiveAdmin, it

Akshay Mohite Akshay Mohite 3 min read
Rails

Use find_each instead of all.each in Rails

In Rails, sometimes we need to iterate over all the records from a model. To achieve this people prefer to use all.each on a model. This can lead to usage of memory if

Akshay Mohite Akshay Mohite 3 min read
Rails

Devise model custom field updates with Rails

Devise gem helps in creating User Authentication layer for the Ruby on Rails applications. The other day, I was taking a session on Hackhands to resolve a query from a Ruby on Rails

Akshay Mohite Akshay Mohite 3 min read
Rails

Rails 5.2 introduces Active Storage for File Uploads

DHH [Creator of Rails] has recently announced Active Storage as a built in support for file uploads. Active Storage is targeted to be released with Rails 5.2. The development has been started on

Akshay Mohite Akshay Mohite 5 min read
Rails

Rails 5 Pluck query changes over Rails 4

Rails 5 has improved the way query was done on database when pluck was called on a model. Before Rails 5, when pluck was called, it used to query database even if the

Akshay Mohite Akshay Mohite 4 min read
« Newer Posts Page 6 of 15 Older Posts »
Ruby in Rails © 2023
Latest Posts Github Twitter LinkedIn

Subscribe to Ruby in Rails

Stay up to date! Get all the latest posts delivered straight to your inbox