Understanding Controlled And Uncontrolled Components In React
Learn about controlled and uncontrolled components, the differences between them and and which one to use.Rails Adds SKIP_TEST_DATABASE_TRUNCATE Flag To Speed Up Multi Process Test Runs
Speed up multi-process test runs on large DBs with ENV["SKIP_TEST_DATABASE_TRUNCATE"] flag by skipping the table truncations and running test within default transaction.Puma-dev And Using It With Rails Applications.
Explore what Puma-dev is, why it is beneficial, how to install and use it, and how to configure it within bin/setup.Rails 7.2 Adds app:update Task to be a Rails Command.
The app:update task to be a Rails command, and adds the --force flag to it, to allow running bin/rails app:update while accepting all the changes it makes.Rails Add ActiveRecord.after_all_transactions_commit Callback
ActiveRecord.after_all_transactions_commit ensures specified actions execute only after all database transactions commit, ensuring reliable post-transaction operations.Rails Adds ActiveRecord::Base.with_connection To Optimize Database Operations.
Efficiently manages database connections by promptly returning them to the pool after use, enabling immediate reuse rather than holding onto connections until the end of the request cycle.Ruby 3.4 Makes "it" As Default Block Parameter
To add more readability Ruby makes "it" as a default block parameter.BatchEnumerator#destroy_all To Return The Total Number Of Destroyed Records
Rails 7.2 enhances the BatchEnumerator#destroy_all to return the count of destroyed records, eliminating the need for additional queries to determine the number of affected rows.ActiveStorage::Blob#compose Now Supports Custom Blob Key in Rails 7.2.
Rails 7.2 allows to add custom blob key in the ActiveStorage::Blob APIsRuby 3.4 Throws SyntaxError As Keyword Arguments Are No Longer Allowed In Index.
Passing keyword arguments in index to an array set methods throws SyntaxError.