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

推荐订阅源

H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
Microsoft Azure Blog
Microsoft Azure Blog
Google DeepMind News
Google DeepMind News
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
L
LangChain Blog
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog
Hugging Face - Blog
Hugging Face - Blog
G
Google Developers Blog
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
博客园 - 三生石上(FineUI控件)
D
DataBreaches.Net
Recent Announcements
Recent Announcements
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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
Rails security releases, Improved generator option handli...
David Heinemeier Hansson · 2022-07-15 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, July 15, 2022
Posted by Emmanuel Hayford

Hi! Emmanuel here with updates from Rails over the last week.

Rails Versions 7.0.3.1, 6.1.6.1, 6.0.5.1, and 5.2.8.1 have been released! A few days ago Rails released versions 7.0.3.1, 6.1.6.1, 6.0.5.1, and 5.2.8.1. These are security updates that impact applications that use serialised attributes on Active Record models. These updates, identified by CVE-2022-32224 cover a possible escalation to RCE when using YAML serialised columns in Active Record.

Allow opting out of the SameSite cookie You can now opt out of using SameSite on your cookies by passing same_site: nil.

Improve generator implied option handling AppGenerator and PluginGenerator implied options have gotten some improvements: Implied options will now be reported in your shell. Conflicting options will raise an error. Meta options and –no-* options are reported with more precision.

Add Formatting Full Messages with I18n section in ActiveRecordValidations guides Rails Guides received some love. There’s now a section on the Active Record Validations guides to demonstrate how full validation messages can be formatted with the help of I18n.

Add –parent option to job generator to specify parent class of job There’s now a superclass option in the job generator. It’s possible to do bin/rails g job process_payment –parent=payment_job to get class ProcessPaymentJob < PaymentJob; end.

Add include_seconds option to datetime_local_field According to input elements of type time browsers render time differently if you format time without the seconds bit. This PR adds an option to omit the seconds part of formatted time with include_seconds: false.

Add timestamptz as a time zone aware type for PostgreSQL Previously, support for the timestamptz type on the Postgres adapter was added, this caused issues in some cases where the newly-added timestamptz was not considered timezone-aware attribute. This PR fixes the issue for Postgres users.

Common Table Expression support added “out-of-the-box You can now build sophisticated queries with Common Table Expressions using the .with query method on models. The .with allows the usage of Active Record relations without the need to manually build Arel::Nodes::As nodes.

Add ActiveRecord::Base::generates_token_for With this PR, signed_id is relieved of token generation. Token generation is now directly associated with a record allowing record state to be tracked easily.

Add quarter to date/time DateAndTime::Calculations gets a new method, quarter, that returns the quarter of the receiver’s calendar year. Here are some examples: Date.new(2010, 12, 25).quarter # => 4 and Date.new(2010, 4, 12).quarter  # => 2.

32 people contributed to Rails since the last time. Until next time!