Top stories

  1. Image: Ruby on Rails Blog

    Rails Versions 8.0.5.2 and 8.1.4.1 have been released!

    The Rails team released versions 8.0.5.2 and 8.1.4.1, security updates fixing 21 issues. They include possible arbitrary file read, write and remote code execution in Active Storage image and video processing, a Strong Parameters bypass, IP spoofing via the Forwarded header, multiple XSS flaws, several DoS issues, session handling problems, cache poisoning and Action Mailbox Mailgun signature replay. Users are strongly urged to upgrade, as older versions are unsupported.

Latest

  1. Securing Rails

    This week's Rails codebase changes, presented by Claudio Baccigalupo, focus on security. The Securing Rails guide was rewritten under the Rails Foundation documentation effort, dropping outdated sections and old gems and adding coverage of cookies and Active Storage file uploads. Rails now patches Rack::Multipart::Parser to ignore arbitrary encodings, a feature used in past exploit chains, with backports to 8.1 and 8.0 and an opt-out setting. New apps' GitHub Actions workflows pin action versions to a SHA and disable persisted checkout credentials.

  2. Image: Ruby on Rails Blog

    On Rails — Marco Roth: Teaching Rails to Read Its Own Template

    Marco Roth, creator of Herb and ReActionView, appears on the On Rails podcast with host Robby to discuss teaching Rails to understand its own templates. He explains how Herb parses HTML and ERB together to catch broken views before production, and how it is set to become part of Rails 8.2. The 90-minute episode also covers ReActionView's approach to reactive views without rewrites, the origins of RubyEvents.org, and why such tooling matters when AI agents write templates.

  3. Image: Ruby on Rails Blog

    Hotwire guide and more

    This week's Rails changes add a guide to using Hotwire with Rails, now on the Edge Guides. unscope(where: :column) behaviour that removes conditions on joined tables is deprecated, and in Rails 9.0 it will affect only the relation's own table. Other fixes detect Kamal in app:update, filter parameters from Action Cable error logs that previously exposed raw WebSocket messages, and round numeric values to the PostgreSQL money type's scale.

  4. Image: Ruby on Rails Blog

    This Week in Rails: November 6, 2026

    Rails 8.0.5.2 and 8.1.4.1 have been released as security releases addressing 21 security issues, and users are urged to upgrade. The week's codebase changes also restore support for anonymous subclasses of cache stores with LocalCache, which had raised a NoMethodError because the registry key relied on a nil class name. Active Record includes now work when merging an order on another model, and where! and having! accept bind values again after a refactor broke calls used by apps such as Discourse and Canvas.

  5. No tricks, just treats

    This week's Rails changes include a refreshed Active Record multiple databases guide covering the three-tier production setup new apps get by default, and a performance tuning guide open for review. New apps' Gemfiles now load capybara and selenium-webdriver with require: false, speeding boot for non-system tests. Under the :header_only CSRF strategy, forms and meta tags no longer render authenticity tokens.

  6. Safer secrets, ZJIT, and more!

    Recent Rails changes default config.active_support.message_serializer to :json under load_defaults 8.2, so MessageVerifier and MessageEncryptor no longer fall back to Marshal payloads; apps on 7.1 through 8.1 keep :json_allow_marshal. The development tmp/local_secret.txt file is now created with 0600 permissions instead of being world-readable. Route redirects from string templates now stay on the request host, closing an open-redirect path, and SQLite column renames are fixed.

  7. On Rails — Hussain Akram & Antonio Carlos de Souza: Rails Scales for the Rest of Us

    An On Rails podcast episode features Donorbox engineering manager Hussain Akram and chief architect Antonio Carlos de Souza, whose Rails app has served nonprofit fundraising for over a decade. They discuss handling heavy traffic with a deliberately simple setup, moving CI back to developers' machines and returning older code to Rails defaults. They also explain using agent docs to steer AI tools toward preferred codebase patterns; the episode runs 1h 47m.

  8. Faster blank? checks, safer SQLite rollbacks, and more!

    This week's changes merged to Rails main include a faster String#blank? that scans bytes for ASCII-only strings instead of running a regular expression, while non-ASCII strings keep the regexp path. Active Record now shares a read-only set of default attributes with a per-Ractor fallback; in the PR author's ruby-bench run, average time fell from 199 ms to 170 ms, against 134 ms for Rails 8.1.4. Action View also renders collections with fewer intermediate objects, and the Agents on Rails benchmark added a third stage of multi-step tasks.

  9. Image: Ruby on Rails Blog

    Agents on Rails: Stage 3. Can a model build on its own work?

    Stage 3 of the Agents on Rails benchmark tests whether AI models can build on their own work across multi-step, multi-session tasks in Rails apps, combined with Stages 1 and 2 into one overall ranking of nine models. Claude Opus 5.5 at xhigh was most accurate at 65.3% success and led the new multi-step tasks at 72.2%. GPT-6 Luna at max was cheapest at 43.4% success for about $0.19 per run, while GPT-6 Astra at medium was fastest.

  10. Better ACL S3 control and more

    Rails' Active Storage stops attaching a public-read ACL to S3 uploads for public: true services, which previously failed on buckets using the now-default Bucket owner enforced setting; public access should come from a bucket policy, and an explicit acl option restores the old behaviour. The PostgreSQL adapter gains a maintenance_database option for managed services such as DigitalOcean that lack a postgres database. has_one_attached and has_many_attached now forward other options.