惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The GitHub Blog
The GitHub Blog
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News
腾讯CDC
博客园 - 聂微东
The Cloudflare Blog
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Visual Studio Blog
Last Week in AI
Last Week in AI
B
Blog

Ruby on Rails: Compress the complexity of modern web apps

Safer to_i coercion, custom to_fs formats, and more! This Week in Rails: May 16, 2026 This Week in Rails: May 8, 2026 This Week in Rails: May 1, 2026 Active Record gets better every week Great big Rails World 2026 update: CFP, Corporate Support tickets, workshops Query command for database queries and more Explicit query: and body: kwargs for integration tests and more! Speedup ActiveRecord::LogSubscriber#sql_color and more! This Week in Rails: March 27, 2026 Rails Versions 8.0.5 and 8.1.3 have been released! Rails Versions 7.2.3.1, 8.0.4.1, and 8.1.2.1 have been released! This Week in Rails: March 20, 2026 Validate URI scheme in Action Text and more This Week in Rails: March 6, 2026 Planning Center is the newest Rails Foundation Contributing member Action Text gets Markdown conversion, editor links in devcontainers, and more! BARRA seeks Rails developer Joe Agliozzo is looking for a Rails developer The rise of lighttpd as the alternative web server When longer is better and more is more Snowdevil: First e-tailer on Rails Natural selection for frameworks in Ruby vs Java Address book tutorial in Portuguese Becoming a better programmer with Rails 10 Things Every Java Programmer Should Know About Ruby Really Getting Started in Rails Off the Treadmill, Onto the Rails Rails 0.9.5: A world of fixes and tweaks Rich clients with Rails and XUL
Solid Cable as default, 2 new Guides PRs, and much more!
David Heinemeier Hansson · 2024-09-13 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, September 13, 2024
Posted by vipulnsward

Hey everyone, Happy Friday the 13 🎃

Vipul here with the latest updates for This Week in Rails, from the very awesome EuRuKo this week! Let’s dive in.

New Guides Pull Request for review
Two new Guides Pull Requests are up for community review this week. If you are well versed in Action Mailer, or Error Reporting please review and submit your feedback here:

Add Solid Cable
This change starts to use Solid Cable as the default Action Cable adapter in production, configured as a separate queue database in config/database.yml. It keeps messages in a table and continuously polls for updates.

This makes it possible to drop the common dependency on Redis, if it isn’t needed for any other purpose. Despite polling, the performance of Solid Cable is comparable to Redis in most situations. And in all circumstances, it makes it easier to deploy Rails when Redis is no longer a required dependency for Action Cable functionality.

Deprecate Benchmark.ms and add benchmark to the gemspec
Ruby plans to make benchmark a bundled gem. This change sets up deprecation of Rails core extension in favour of the bundled gem for future.

Deprecate unsigned_float and unsigned_decimal short-hand column methods
This change deprecates unsigned_float and unsigned_decimal short-hand column methods.

As of MySQL 8.0.17, the UNSIGNED attribute is deprecated for columns of type FLOAT, DOUBLE, and DECIMAL. Consider using a simple CHECK constraint instead for such columns. More details can be found here.

Allow BroadcastLogger to pass through kwargs
Some Logger implementations may want extend the logging interface to provide optional information via keyword argument. This change enhances BroadcastLogger to allow the same.

Fix travel_to to set usec 0 when with_usec is false and the given argument is String or DateTime
Before this change travel_to did not set usec to 0 depending on the argument (String or DateTime). This PR fixes this behavior to make it uniform.

Fix .left_outer_joins when multiple associations have the same child
This change fixes an issue where .left_outer_joins used with multiple associations that have the same child association but different parents does not join all parents.

Previously, using .left_outer_joins with the same child association would only join one of the parents. After this fix it now correctly joins both parents.

alias_attribute: handle user defined source methods
Before this change, when using alias_attribute and trying to alias user defined source methods would error, for example:

class Person
  include ActiveModel::AttributeMethods

  define_attribute_methods :name
  attr_accessor :name

  alias_attribute :full_name, :name
end

person = Person.new
person.name = "Joe Doe"
person.full_name #=> Raises error

This change fixes alias_attribute behavior to handle user defined source methods properly.

Enable DependencyTracker to evaluate renders with trailing interpolation

<%= render "maintenance_tasks/runs/info/#{run.status}" %>

Previously, the DependencyTracker would ignore this render, but now it will mark all partials in the maintenance_tasks/runs/info folder as dependencies after this change.

You can view the whole list of changes here. We had 28 contributors to the Rails codebase this past week!

Until next time!

Subscribe to get these updates mailed to you.