Contributions

Article
Rails 7.1 Introduces ActiveRecord regroup Method

https://blog.saeloun.com/2024/02/19/rails-7-1-introduces-active-record-regroup-method/

#rails #rails7_1 #activerecord
Article
Rails 7.1 allows resetting the cache on singular associations by querying the database again to retrieve the associated record.
Article
Rails 7.1 introduces an option to disable all methods that ActiveRecord.enum generate
Article
With Rails 7.1, the path_params option for the url_for helper method allows specified params to be used exclusively for named segments under scoped routing without unnecessarily appending parameters to every URL.
Article
With Ruby 3.3, Range#reverse_each can now process very large or beginless ranges with an Integer endpoint and raises TypeError for endless ranges.
Article
Compare two ranges and see if they overlap each other with the Ruby overlap? method. It returns true if two ranges overlap each other.
Article
Maximize Rails performance with a read replica DB! Reduce primary DB load for better efficiency.
Article
Dockerfiles facilitate the deployment of Rails applications in production environments using Docker.
Article
Bring efficiency and flexibility to job enqueuing in Rails 7.1 with ActiveJob's perform_all_later. Handle diverse job arguments, support bulk enqueuing, and offer enhanced control over job execution.