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

推荐订阅源

有赞技术团队
有赞技术团队
美团技术团队
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
V
V2EX
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
量子位
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
Jina AI
Jina AI
月光博客
月光博客
L
LangChain 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
Omakase RuboCop, Brakeman, Ruby 3.1+, allow_browser, rate...
David Heinemeier Hansson · 2024-01-05 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, January 5, 2024
Posted by zzak

Hi, zzak here with the first edition of This Week in Rails for 2024.
This year started off with a ton of contributions, nearly 170 commits, sorry we couldn’t fit everything in a single newsletter.

Rails UJS has been deprecated since Rails 7, time to die
While the official package @rails/ujs is still published on NPM, and the final compiled targets for the asset pipeline remain, all of the source files, tests, and internal packaging tasks were removed.

Add default PWA manifest and service worker file
Freshly generated Rails apps now include a manifest and service worker file to become full-fledged Progressive Web Applications.

Add rubocop-rails-omakase to new Rails applications
This setups a basic RuboCop config for new Rails apps using the rubocop-rails-omakase gem.

Add Brakeman by default to new apps
A newly generated Rails app also now includes Brakeman for enhanced security vulnerability checking.

Default to creating GitHub CI files
With the addition of RuboCop and Brakeman to new applications, we’ve also added default GitHub CI workflow files.

Add allow_browser to set minimum versions for your application
Now you can easily specify which browsers you’ve supported to allow access to your application.

Bump the required Ruby version to 3.1.0
The team is trying to stay ahead of the curve, and with Ruby 3.0 being EOL in March, now seems like a good time to bump that requirement.

Add rate limiting to Action Controller via the Kredis limiter type
Last, but certainly not least, we have a new API for rate limiting built into Action Controller which depends on the Kredis limiter type.

class SessionsController < ApplicationController
  rate_limit to: 10, within: 3.minutes, only: :create
end

class SignupsController < ApplicationController
  rate_limit to: 1000, within: 10.seconds,
    by: -> { request.domain }, with: -> { redirect_to busy_controller_url, alert: "Too many signups!" }, only: :new
end

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

Until next time!

Subscribe to get these updates mailed to you.