Ruby on Rails
83 FOLLOWERS
Rail is a full-stack framework. It ships with all the tools needed to build amazing web apps on both the front and back end. Rendering HTML templates, updating databases, sending and receiving emails, maintaining live pages via WebSockets, enqueuing jobs for asynchronous work, storing uploads in the cloud, and providing solid security protections for common attacks. Rails do it all and so much..
Ruby on Rails
5h ago
As we close the books on a busy Q1, the Rails Foundation is happy to welcome our newest Contributing member: makandra.
As the first German company to join the foundation, makandra brings with it over 15 years of building on Rails for large corporations such as Volkswagen and Audi to one-man companies such as Wissensbox.
Joining the Rails Foundation is a huge milestone for us and shows that we are fully behind Ruby on Rails. We are proud to be part of this community and we are determined to do our part to further develop and strengthen the framework.
Thomas Eisenbarth, makandra CEO and Found ..read more
Ruby on Rails
3d ago
Hey everyone, Happy Friday! I hope you get some time to unwind and relax going into the weekend ?
Vipul here with the latest updates for This Week in Rails. Let’s dive in.
Allow ActiveRecord::Base#pluck to accept hash values
This change adds support for ActiveRecord::Base#pluck to accept hash values.
# Before
Post.joins(:comments).pluck("posts.id", "comments.id", "comments.body")
# After
Post.joins(:comments).pluck(posts: [:id], comments: [:id, :body])
The same applies to .pick, which is implemented using .pluck.
Fix child association loading in :n_plus_one_only mode
Strict loading in :n_p ..read more
Ruby on Rails
1w ago
Hi, it’s Greg. Let’s explore this week’s changes in the Rails codebase.
Fix union select parentheses
When building UNION or UNION ALL queries involving LIMIT or ORDER BY, Arel generated invalid SQL previously. This pull request changes Arel::Visitors::ToSql so that SELECT statements in Union and UnionAll nodes are enclosed in parentheses to avoid syntax errors.
Fix copying virtual columns when altering a table in SQLite3
When Rails alters a SQLite table, it creates a new table and copies the structure and data from the old one.
The problem is that virtual columns are incorrectly copied (copied ..read more
Ruby on Rails
2w ago
Hi, Wojtek here exploring this week’s changes.
Rails World 2024 edition website is now live
With tickets going on sale in April.
Allow to register transaction callbacks outside of a record
ActiveRecord::Base.transaction now yields an ActiveRecord::Transaction object, which allows to register callbacks on it.
Article.transaction do |transaction|
article.update(published: true)
transaction.after_commit do
PublishNotificationMailer.with(article: article).deliver_later
end
end
Added ActiveRecord::Base.current_transaction which also allows to register callbacks on it.
Article.current ..read more
Ruby on Rails
3w ago
Greetings! I’m Emmanuel Hayford, here to bring you your weekly instalment of “This Week In Rails”. Let’s dive straight into it. Two new guides are now open for community review. If you are well versed in Action View, partials, and helpers, please review and submit your feedback here:
Action View Overview PR
Action View Helpers PR
Add config.active_record.permanent_connection_checkout setting This setting determines the action taken when ActiveRecord::Base.connection is accessed: whether it raises an error, emits a deprecation warning, or does nothing.
ActiveRecord::Base.connection acq ..read more
Ruby on Rails
1M ago
Hey everyone, Happy Weekend!
Vipul here with the latest updates for This Week in Rails. Let’s dive in.
Rails guides gets a facelift
Rails guides has a received a big design update!
Check out the Edge Guides to see these changes. If you find a bug or wish to submit a suggestion, you can open a discussion on GitHub.
Two new official gems
Solid Queue, a DB-based queuing backend for Active Job, has graduated to an official Rails gem.
Same for Mission Control — Jobs, which provides a Rails-based frontend to Active Job adapters. It currently supports Resque and Solid Queue.
Don’t enqueue jobs to pro ..read more
Ruby on Rails
1M ago
When Rails 7.0 landed in December 2021, it came with a fresh new homepage and a new boot screen. The design of the guides, however, has remained largely untouched since 2009 - a point which hasn’t gone unnoticed (we heard your feedback).
With all of the work right now going into removing complexity from the Rails framework and making the documentation consistent, clear, and up-to-date, it was time to tackle the design of the guides and make them equally modern, simple, and fresh.
We worked with UX designer John Athayde to take the look and feel of the homepage and transfer that over to the Rai ..read more
Ruby on Rails
1M ago
Hi, it’s zzak. Let’s explore this week’s changes in the Rails codebase.
The Rails World CFP will close in just one week on March 21.
Submit your talk in time!
Active Record Basics Guide
This PR refreshes the guide covering the basics of Active Record.
Do not try to alias on key update when raw SQL is supplied
A bug was found when updating duplicates with raw SQL.
Memoize “key_provider” from “key” or deterministic “key_provider” if any
Previously, this memoization was removed which lead to a performance hit for encrypted attributes.
Updating Astana with a Western Kazakhstan timezone
On March 1 ..read more
Ruby on Rails
1M ago
Hi, it’s Greg. Let’s explore this week’s changes in the Rails codebase.
Feedback for structuring the Active Record Query Guide
The Active Record Querying Guide is getting restructured and the team working on it requests feedback from the community.
Rails World CFP closes in 2 weeks
2 more weeks left to submit your talk to Rails World 2024!
Railties: configure sanitizer vendor in 7.1 defaults more robustly
In apps where rails-html-sanitizer was not eagerly loaded, the sanitizer default could end up being Rails::HTML4::Sanitizer when it should be set to Rails::HTML5::Sanitizer. This change requi ..read more
Ruby on Rails
1M ago
Hi, Wojtek from this side. Let’s explore this week’s few changes in the Rails codebase.
Rails security update releases
Rails Versions 6.1.7.7, 7.0.8.1, and 7.1.3.2 have been released last week which contain fixes for security issues.
Expose a generic “fixture” method in tests
To avoid conflicting methods, in example with Minitest, it is possible now to load fixtures like this:
assert_equal "Ruby on Rails", web_sites(:rubyonrails).name
assert_equal "Ruby on Rails", fixture(:web_sites, :rubyonrails).name
Introduce assert_initializer
Compliments the existing initializer generator action.
Set d ..read more