Blog

Filtered by: Rails Clear
Asset Management in Rails: From Sprockets to Propshaft
· 8 min read

Asset Management in Rails: From Sprockets to Propshaft

Asset management in Rails has evolved significantly. This article examines the shift from Sprockets to Propshaft, the role of js-bundling and css-bundling, and when to choose each approach.

Rails Asset Pipeline Propshaft
· 2 min read

Rails 7.1 Active Record Transaction on return, break and throw

In the latest Rails, a significant change has been made to the behaviour of transactions. Specifically, using return, break, or throw statements will no longer trigger an automatic rollback of the transaction. In Rails 6.1 use of return, break, and t...

Rails 7.1 activerecord Rails
· 2 min read

Rails 7.1 - authenticated_by

Rails provides has_secure_password class method to store passwords securely. You need to have password_digest attribute in your model to get it working. For example, if you have a user model class User < ApplicationRecord has_secure_password end T...

Rails Rails 7.1 Ruby on Rails
· 1 min read

Include Class Methods and Validation Using Module in RubyOnRails

{% codeblock lang:ruby%} class User include TestModule

Modules Rails
· 1 min read

Routes in Rails3

Rails3 define routes in more efficient way Routes for CRUD actions

Routes in Rails3 Routes Rails
· 1 min read

ActiveModel in Rails3

In Rails3 Active Model feature is added that helps to use feature of active record class for a non active record class.In Active Model you can make Any Ruby Object Feel Like Active Record and can g...

ActiveModel Rails