authorImg Swaathi Kakarla
authorImg Swaathi Kakarla

Swaathi Kakarla is a Ruby on Rails Developer.

Rails now uses error_highlight to locate the columns where an error is present

With the help of Ruby 3.1's error_highlight functionality, Rails can now pinpoint the exact column where an error is present.
authorImg Swaathi Kakarla
authorImg Swaathi Kakarla

Swaathi Kakarla is a Ruby on Rails Developer.

Rails 7 adds default value support for binary columns for SQLite

Binary columns now behave like other column types with default values in SQLite.
authorImg Swaathi Kakarla
authorImg Swaathi Kakarla

Swaathi Kakarla is a Ruby on Rails Developer.

Rails 7 updates through_reflection to distribute transactions across database connections

Models that use multiple databases now perform writes within a single transaction.
authorImg Deepak Mahakale
authorImg Deepak Mahakale

Deepak is an Engineering Manager at Saeloun.

ActiveRecord::QueryMethods#select adds support for hash values in Rails 7.1

ActiveRecord::QueryMethods#select adds support for hash values in Rails 7.1
authorImg Swaathi Kakarla
authorImg Swaathi Kakarla

Swaathi Kakarla is a Ruby on Rails Developer.

Rails extends routes searching to include dynamic URL params

Now search for `cats/10/toys/15` instead of `cats/:cat_id/toys/:id`, making it easier to find the route you're looking for.
authorImg Shruti Apte
authorImg Shruti Apte

Shruti is a ReactJS Developer.

Understanding the CSS parent selector :has()

If we want to target the parent element based on the content or the child elements we can use :has().
authorImg Keshav Biswa
authorImg Keshav Biswa

Keshav is a Ruby on Rails Developer.

Rails "ActionController::Parameters.to_h" can now receive a block

ActionController::Parameters.to_h will now receive a block just like Hash#to_h and achieve parity. This gives the ability to customize the way parameters are passed to the controller.
authorImg Swaathi Kakarla
authorImg Swaathi Kakarla

Swaathi Kakarla is a Ruby on Rails Developer.

Rails 7 now reads ENV["SCHEMA_FORMAT"] when doing rails db:schema:{dump,load}

Previously rails db:schema:{dump,load} would only dump Ruby format. Now it reads ENV["SCHEMA_FORMAT"] to choose between Ruby and SQL formats.
authorImg Ankita Kaushik
authorImg Ankita Kaushik

Ankita is a Frontend Developer.

Understanding CSS Feature Queries

CSS Feature Queries are a relatively new addition to the CSS specification, and provide a powerful tool for detecting support for various CSS features in the user's browser.
authorImg Swaathi Kakarla
authorImg Swaathi Kakarla

Swaathi Kakarla is a Ruby on Rails Developer.

ActiveRecord methods touch and update_columns no longer work for readonly models

Readonly models get updated when touch or update_columns is called.