Hotwire Guide and More
A look at this week's official Rails roundup, featuring a new Hotwire guide alongside another big round of fixes and improvements across the codebase.
The last month of the top Ruby blogs
A look at this week's official Rails roundup, featuring a new Hotwire guide alongside another big round of fixes and improvements across the codebase.
In this podcast episode, Marco Roth, creator of Herb and ReActionView, sits down with Robby Russell to discuss teaching Rails to understand its own templates and how smarter template parsing can unlock better tooling for modern view architectures.
Building a reusable dropdown using web components and the native Popover API allows for tailored behavior like keyboard navigation, context menus, and auto-flipping. A guide to packaging these interactions into a single ui-dropdown custom element for Rails views.
This issue of the Ruby Weekly newsletter covers memory optimization in Rails metaprogramming, Aaron Patterson's merged PR speeding up Active Record attribute reads, and a look at what is new in RubyGems and Bundler 4.1.
When an LLM framework initially lost to using no framework because coding agents struggled to understand how to use it, architectural adjustments were needed. A breakdown of what changed in RubyLLM, what worked, and how the improvements were measured.
A reflection on how Rails World influenced daily developer workflows with AI, examining which practices shifted after the conference and what habits are worth keeping intact.
In this podcast episode, Rachael Wright-Munn joins David Hill to discuss maintaining open source projects like Ruby Events in the age of AI. They explore YAML validation, an Active Record style interface built around Yerb, Git worktrees, and how clear rules help manage AI-assisted contributions.
The final part of a series on RubyGems and Bundler 4.1 explores their unification. Key changes to gem install include dropping per-gem gemspec fetches, caching the compact index with ETags, adopting the PubGrub resolver, and sharing an HTTP stack and vendored libraries across both codebases.
A walkthrough of adding a small feature to a Ruby gem entirely by hand without AI assistance. Topics include writing tests, polishing the CLI output, displaying new stats on a website, and reflecting on the value of writing code manually.
A look at moving an MCP server directly into a Rails application as a remote, multi-tenant service. Covers integrating Doorkeeper OAuth, building tenant-scoped tools, and providing dry-run previews for destructive operations.
RubyLLM 2.2 runs the code a model writes in a sandbox on your own servers, adds skills and file stores, lets tools ask a person, keeps a chat alive through a deploy, and is built to be used well by coding agents.
A weekly development update covering work across the Hanami ecosystem, including merging diagnostics into hanami-webconsole and reviewing upcoming improvements.
A look at four security risks that bundler-audit will not catch in modern AI-enabled Ruby stacks, covering untrusted regexps from MCP schemas, bearer tokens leaked in debug logs, pinning the RubyLLM gem, and backdoored editor extensions.
Version 6.2.2 of the Passenger application server has been released. This release focuses primarily on bug fixes and security hardening.
Sam Péchèr reflects on starting out as a junior developer just as the industry began shifting away from writing code, featured at the North West Ruby User Group's November meetup in Manchester.
A look at how Rails magic uses advanced metaprogramming techniques under the hood to save memory and optimize performance across your applications.
Claude cannot query your database or run code directly, but it can ask your app to act on its behalf. A guide to how Claude uses tools at the API level in a Rails app with plain Ruby, covering custom tools, agent loops, and where MCP fits in.
A quiet day in the Ruby community.
A breakdown of a critical Rails security vulnerability rated CVSS 9.8. Part of a release addressing 21 security issues, GHSA-f3w6-w445-fwh9 allows possible arbitrary file write and read in Active Storage image analysis when using ImageMagick.
An exploration into metaprogramming in Ruby by manipulating ASTs, similar to macros in Lisp or Elixir. While eval is commonly used across Ruby and Rails for runtime code generation and performance, it brings risks of injection attacks and error-prone string construction that Steadfast aims to address.
Manual Ruby gem releases involve bumping versions, tagging, pushing to RubyGems, and publishing GitHub releases. While GitHub Actions with OIDC and trusted publishing simplify this, handling changelogs and release bookkeeping often gets messy. Here is a look at ruby-gem-release, an automated workflow tool to mechanize the entire process in Ruby.
An overview of defenses against supply chain attacks arriving in RubyGems and Bundler 4.1 from lead maintainer Hiroshi Shibata. Key additions include cooldown periods for newly published gems, options to block code execution during installation, credential storage via OS keychains, and automatic attestations on GitHub Actions.
The official This Week in Rails summary rounding up the latest changes, features, and pull requests merged into the Rails codebase over the past week.
An introduction to rubocop-prose, a RuboCop plugin designed for Markdown and plain text. Learn how it was created to lint prose and embedded Ruby code together, replacing external Node.js tools in Ruby and Jekyll workflows.
RubyMine 2026.3 brings JetBrains Air for working with preferred coding agents, native access to WSL and Dev Container projects, and smarter Ruby and Rails support. The release also includes easier interpreter setup along with improved navigation and refactoring.
Regular tickets for the SF Ruby Conference have sold out, leaving late bird and corporate options available through November 8. Attendees can meet community peers, take part in small-group conversations, and explore the upcoming program in San Francisco.
This issue of the Ruby Weekly newsletter highlights critical releases for Rails fixing 21 security advisories, led by a critical Active Storage file vulnerability, Strong Parameters bypasses, and remote_ip spoofing, alongside upgrade walkthroughs and other community updates.
JRuby 10.0.8.0 is out, targeting Ruby 3.4 compatibility. This release updates the standard library to match or exceed Ruby 3.4.12, upgrades the asm bytecode library, and brings security fixes including an update to uri addressing CVE-2025-61594 alongside multiple gem upgrades.
JRuby 10.1.3.0 is now available, targeting Ruby 4.0 compatibility. Notable updates in this release include method and branch coverage testing in the Coverage module, along with support for the Fiber Scheduler and IO::Buffer APIs.
An official release announcement for RubyGems 4.0.24 and Bundler 4.0.24. This update brings enhancements and bug fixes, including graceful executable removal handling, improved file locking across processes, password prompt echo fixes, and platform materialization reporting.
In this podcast episode, Eduardo and Camila Souza discuss building Pivotal Tasker, a Rails-based project management alternative created after Pivotal Tracker shut down. They also explore transitioning from consulting to product development, building focused SaaS tools, and using AI coding agents responsibly.
Five years after RubyTapas transitioned into Graceful.Dev, the remaining legacy rubytapas.com site is finally shutting down. A farewell to the domain that served Rubyists for years, along with details on what happens to old links.
An official announcement from the Rails blog sharing the release of Rails versions 8.0.5.2 and 8.1.4.1, bringing the latest maintenance and bug fixes to the framework.
An exploration of frontend solutions for reactive and interactive web applications from the perspective of a backend developer and creator of the Syntropy Ruby framework. Covers Datastar alongside comparisons to Svelte, Phoenix LiveView, and recent work by Marco Roth.
A security advisory for Action Pack: Since Rails 8.1.0, ActionDispatch::RemoteIp derives request.remoteip from Rack::Request#forwardedfor, which prefers the RFC 7239 Forwarded header over X-Forwarded-For. Misconfigured reverse proxies could allow unauthenticated attackers to spoof client IPs, potentially bypassing access controls and rate limits.
A security advisory for Action View text helpers. When using the HTML5 sanitizer, older Nokogiri versions could serialize unescaped characters inside attribute values. In highlight and simpleformat, this can cause inert markup to become live elements in htmlsafe output, potentially leading to XSS.
A security advisory for Active Support: ActiveSupport::MessagePack serializes an ActiveSupport::SafeBuffer as raw bytes and restores it as safe, even if mutated. When untrusted input is stored via MessagePack, rendering it bypasses ERB auto-escaping, potentially leading to XSS vulnerabilities in Rails 8.1 applications.
A security advisory for Rails Active Storage details a vulnerability in VideoPreviewer, VideoAnalyzer, and AudioAnalyzer. When processing untrusted uploads with FFmpeg, crafted HLS playlists can disclose local media files. Fixed versions introduce config.activestorage.ffmpegallowed_formats to restrict input formats.
A security advisory for Active Storage: configuring a GCS service with cache_control leads to direct-upload URLs signing only Cache-Control and Host headers. Clients can supply arbitrary Content-Type headers without invalidating the URL, potentially allowing uploaded files to be served as inline HTML.
A security advisory for Rails Active Storage. When proxy controllers stream files, handling storage errors after headers commit can leave the ActionController::Live buffer open. This causes server threads to block indefinitely, potentially leading to denial of service under repeated failed downloads.
A security advisory for Rails Action Mailbox: due to missing boundaries in HMAC token concatenation, an attacker could replay captured Mailgun webhook requests with future timestamps. This allows arbitrary forged inbound emails to be processed indefinitely in affected applications.
A security advisory for Action View tag helpers. A whitespace-only symbol passed as an attribute name bypasses blank checks, emitting malformed HTML that browsers may misinterpret, potentially leading to XSS. Applications permitting user-controlled attribute names should upgrade immediately.
A security advisory regarding a possible DoS vulnerability in Active Support's safe_constantize. When constant lookup raises LoadError, unescaped input is compiled into a regex, potentially triggering Ruby compiler defects and crashing the server process. Action Cable endpoints are exposed to this by default.
A security advisory for Active Storage: applications processing attachments with ImageMagick may allow an unauthenticated attacker to write and read arbitrary files on the server when using the Disk service. This could expose secretkeybase and credentials, potentially leading to remote code execution.
A security advisory for Action Pack. Session stores other than CookieStore write session cookies without a SameSite attribute, ignoring config.actiondispatch.cookiessamesiteprotection. In older browsers, this could allow cross-site requests to carry session cookies, potentially enabling CSRF attacks against endpoints that skip token verification.
A security advisory for Rails Active Storage direct uploads using Google Cloud Storage. Direct-upload URLs failed to bind declared content length constraints, potentially allowing clients to bypass application file size validations and quotas by storing files larger than declared.
A security advisory for Active Storage: uploaded filenames containing NUL bytes stored in SQLite or MySQL can cause ActiveStorage::Filename#base and related methods to raise an ArgumentError. This can result in a persistent denial of service when building variants, previews, or rendering attachments.
A security advisory for Action Pack details a possible cache poisoning vulnerability in content negotiation. Shared caches honoring Vary could store improperly negotiated responses and serve clients an unexpected representation, such as a layout-less page or HTML instead of JSON.
A security vulnerability advisory for Action View: striptags returns output marked htmlsafe without encoding quotes, allowing untrusted input rendered inside HTML attributes to potentially execute XSS. Applications rendering strip_tags output inside attributes are affected and should update.
A security advisory for Rails Action Pack: ActionController::Live::Buffer#close can block indefinitely when a client disconnects with a full response queue, potentially leading to denial of service via thread exhaustion. Applications using ActionController::Live, send_stream, or Active Storage proxy mode are affected, and patches are available.
A security advisory for Rails Action View: ActionView::Helpers::TextHelper#highlight substitutes matched phrases into the :highlighter option without proper escaping. When user-controlled text is placed inside an attribute value, unescaped quotes can lead to cross-site scripting (XSS). Fixed versions now properly escape matched groups.
A security advisory for Active Storage: an attacker who controls the uploaded filename and content type can force downstream tools like ffmpeg and ImageMagick into executing arbitrary scripts. This vulnerability can lead to arbitrary file disclosure or remote code execution.
A security advisory reveals that ActionController::Parameters#each_key returned the internal hash rather than the Parameters instance when given a block. This allowed Active Model mass assignment to accept unpermitted attributes, enabling potential privilege escalation. Patched Rails versions resolve this bypass.
A security advisory for actionpack: ActionDispatch::Cookies can leak session information via cacheable responses when using Active Storage proxy mode with rotated or migrated cookies, potentially allowing shared caches to serve one user's session to subsequent requesters.
A development update on the Hanami Ruby framework, marking a milestone feature freeze to focus on cutting down outstanding items and shifting into release preparation.
A look at the discovery process before moving a Rails app off Heroku, detailing what to inventory beyond the standard dashboard, how to shape migration ordering, and common blind spots that might get missed along the way.
A tour of lemans, the open source Ruby harness behind Agents on Rails. Take a look at eval task anatomy, how it runs and grades coding agents for hours, and how cheaters shaped its guardrails.
A look at a compact Ruby technique for methods that double as both a getter and a setter, allowing callers to pass a value to update a setting or provide no arguments at all to read it.
Rails main now lets ActiveSupport::EncryptedFile try comma-separated keys when decrypting, including keys supplied through RAILSMASTERKEY. While this unreleased Rails 8.2 feature facilitates credential rotation, it only applies to fallback reads rather than multi-key writes or credentials-editing workflows.
Two Rails jobs can save successfully and still lose an update. Learn how Solid Queue concurrency limits and strategic database writes can protect shared state from race conditions.
This screencast explores several examples of background jobs and demonstrates how to refactor them to handle situations where they execute multiple times from user actions or retries. Learn practical approaches to structuring jobs to safely prevent duplicate operations.
A guide on how to restrict admin routes to specific VPN IP addresses on Heroku using Rails advanced route constraints.
Ruby land was quiet today.
When production Rails surprises you, the hard part is finding where to look. This six-page field guide provides the checks to run and the evidence to capture, tracing issues from the incoming request all the way to background jobs.
A critical update regarding a SQL injection vulnerability in the Trilogy MySQL adapter. Exploitation is possible with a single request if an Active Record query contains two slots using escape, as Rails parameter encoding checks do not provide the expected mitigation.
In this edition of This Week in Rails on the official Rails blog, explore the latest weekly updates, improvements, and fixes recently committed to the Rails codebase.
A look at Hanami Icons, a new wrapper around the icons gem that brings the familiar rails_icons interface to Hanami. It provides a single interface to sync, normalize, and render SVGs from Heroicons, Lucide, Tabler, or custom folders.
Superpowers Ruby is renamed to RubyPowers starting in version 8.0.0. Existing users need to migrate their plugin installation and update saved skill references, though existing plans and specs remain supported.
Instead of adding an external runtime and extra CI jobs just to spell check a Jekyll site, consider keeping tooling consolidated. A look at replacing multi-language linters with a native RuboCop plugin that fits directly into an existing Ruby workflow.
This issue of the Ruby Weekly newsletter highlights Dennis Paagman tracking how quickly recent CRuby security fixes reached version managers, Docker images, CI services, and hosting platforms. Other featured links cover building custom images for Kamal and alternatives to nightly cron jobs.
Ruby Central relaunches its open source changelog, sharing updates from the team maintaining RubyGems.org and the wider Ruby packaging ecosystem. This edition covers recent improvements and ongoing maintenance work supporting the community's critical infrastructure.
Production Rails applications on the public internet inevitably face a firehose of garbage requests from vulnerability scanners and poorly behaved bots. Here is a look at the common exceptions that flood error trackers like Sentry and AppSignal, along with strategies to quiet the noise.
A development update on Hanami as work continues toward the next release, focusing on resolving a regression in body params logging and tackling perplexing inconsistencies in Rack parameter parsing.
In this podcast episode, JP Camara explores background job coordination and bringing batches to Solid Queue. The discussion covers treating jobs as a unit, triggering callbacks upon completion, handling database transactions, and inspecting progress with Mission Control Jobs.
An official release from the RubyGems and Bundler team, version 4.1.0.beta3 introduces several enhancements, features, and bug fixes. Highlights include Bundler 4.1.0.beta3 installed as a default gem, recording overrides in Gemfile.lock, and fixes for file locks and missing binary directories.
In this official update from Ruby Central and RubyGems, the team relaunches their regular changelog covering ongoing work across RubyGems.org and the packaging ecosystem. Highlights include operational improvements to monitoring, incident handling, and abuse mitigation.
Key takeaways on agent-ready Rails applications and project management following Rails World, reflecting on what the event offered from a delivery manager's perspective.
Moving an AI agent's reasoning loop into a Sidekiq job is the easy part. Making it safe to retry and visible while it runs is what actually takes work. Here is how to achieve both within a Rails app.
A podcast conversation on Tech for Humans covering Rails, AI, running a software consultancy, and open source. Topics include insights from a recent Rails World keynote, why teams postpone Rails upgrades, how AI might impact open source dependencies, and life running Planet Argon.
A benchmark simulating thousands of active users revealed that Campfire's page cache rarely hit, message fragments were not shared between viewers, and building cache keys was surprisingly costly. Three pull requests reduced the Rails room page render from 46 ms to 11 ms, alongside an Action Cable ordering bug investigation.
Rails 8.2 sets config.activesupport.messageserializer to :json for applications loading defaults for 8.2. While versions 7.1 through 8.1 write JSON but still accept legacy Marshal messages, this change stops accepting Marshal payloads entirely in ActiveSupport::MessageVerifier and ActiveSupport::MessageEncryptor.
When security releases drop, official Docker images can take time to appear. Here is a guide on building your own Ruby Docker image locally and deploying it with Kamal so you do not have to wait when urgent patches arrive.
A practical guide to running Bootstrap 4 and 5 side by side in a Rails app, choosing the version per controller using custom layouts, and migrating incrementally across small pull requests.
Campfire now features eight implementations alongside a shared benchmark auditing responses and writes. However, measuring a single viewer rewards whole-page caching that busy deployments rarely hit. Here is a survey of how each implementation caches, along with proposals for what the benchmark should measure next.
An official release announcement for Ruby 3.3.13, delivering security fixes for CVE-2026-80212 and CVE-2026-80213 via an update to the default resolv gem. It also addresses specific Regexp compilation bugs related to several recent GitLab vulnerabilities while Ruby 3.3 remains in security maintenance.
An official release announcement for Ruby 3.4.12. This maintenance release delivers fixes for several Regexp compilation bugs tied to recent GitLab CVE security vulnerabilities, along with other general bug fixes across the language runtime.
In an official security release, the Ruby core team has announced Ruby 4.0.9, 3.4.12, and 3.3.13. These updates patch critical bugs in Ruby's Onigmo regular expression engine that could lead to memory corruption and potential remote code execution when compiling user-supplied regex patterns.
An official announcement that Ruby 4.0.9 is available. This release delivers critical bug fixes for Regexp compilation that resolve issues related to several GitLab vulnerabilities, including CVE-2026-110264 and related CVEs.
A roundup of official Rails updates this week: new apps stop falling back to Marshal for signed messages, local secret files are no longer world-readable, SQLite column renaming gets fixed, plus early work on ZJIT and other improvements.
A breakdown of opening 295 pull requests across 49 repositories and shipping 30 releases in ten days using AI. Following up on tackling old Mongoid issues, the experiment expanded into CI maintenance, library features, and upgrades while burning roughly 1.2 billion tokens.
A special out-of-band newsletter issue covering urgent security releases for CRuby. New patch versions address multiple regular expression engine vulnerabilities in Onigmo that could lead to memory corruption during pattern compilation. Find out if your applications are affected.
An official release announcement for Ruby 4.0.8. This is a routine maintenance update bringing several bug fixes across the language. Users are advised to review the release notes and update their installations.
An interview from the official Rails blog with Donorbox engineering manager Hussain Akram and chief architect Antonio Carlos de Souza, exploring how Rails has powered their nonprofit fundraising platform for more than a decade.
Rails 8.2 compiles HTML+ERB templates through Herb, an HTML-aware ERB engine that rejects unclosed tags at compile time. Add bin/rails herb:check to CI so broken markup never reaches production.
A look at whether your test suite still needs DatabaseCleaner. This piece covers its traditional use cases, the performance benefits of removing it, and insights from a real-world application case study.
In this podcast episode, Jessica Kerr and Avdi Grimm join David Hill to discuss what software engineering looks like when writing code is no longer central to the job. They explore AI-assisted programming, shifts in developer identity, and practical approaches to overseeing generated code.
A Rails deploy can return unfinished Solid Queue jobs to ready, even after a webhook succeeds. Explore how this replay occurs, the surviving side effects, and how to use an operation key to make retries safe.
A deep dive into how Aaron Patterson made Active Record enums faster with one weird trick, essentially turning Rails into a specialized JIT compiler at runtime.
Distributing a commercial library like geneva_drive brings unique infrastructure challenges. Here is a look at paquette, a lightweight custom engine for serving private packages and gems, exploring how it was built and the architectural decisions behind it.
A guide to writing robust evals for coding agents testing apps without prior code access. Explores different UI/UX contract strategies, UI mutation testing, and browser-based end-to-end verification gotchas.
A look at rubocop-spellcheck, a RuboCop plugin for checking spelling across Ruby comments, strings, identifiers, Markdown, and plain text. It utilizes Kotoshu with a pure Ruby backend and an included American English dictionary, requiring no external system spelling dependencies.
Rails 8.2 lets an Active Record type define the SQL expression every query compares through. Write lower() once in a type to get case- and accent-insensitive find_by, where, order, and uniqueness validation for free.
SF Ruby is an engineers' conference offering an opportunity to meet the people building Ruby open source, scaling Rails in production, and shaping what agentic Rails looks like next.
Version 7 of the Passenger application server is now available in preview. This release introduces support for WebSockets with Apache httpd alongside parallel rolling restarts, allowing a rolling restart to complete faster at the cost of increased memory use.
Reflections and key takeaways from Rails World, exploring how uncertainties about AI evolved into thoughtful conversations about where the future of software development is headed and the shifting role of developers as toolmakers.
A weekly update on progress toward Hanami 3.1 readiness, featuring ongoing improvements, notable highlights, and core framework development work.
Version 6.2.1 of the Passenger application server is out. This release updates the minimum supported OS versions to macOS Sequoia and Debian 12, adds packages for Ubuntu 26.10, and improves error reporting along with compatibility for SELinux and Ruby frozen strings.
A look at finding possibly uninitialized variables using bipartite graphs via static program analysis. After exploring the underlying concepts with a toy language, the techniques are applied directly to analyzing Ruby code.
A breakdown of the pricing and expenses that go into creating the Ruby stained glass art piece, detailing the materials, time, and craftsmanship involved in the project.
Rails 8.2 introduces default_order for Active Record relations, providing a fallback sort that applies only when a query has no explicit ordering. A look at how this simplifies sorting logic compared to chaining order or resetting with reorder.
Roundhouse's Ruby output now runs under Falcon as well as Puma. On the Campfire benchmark, it beats Tobi Lütke's hand-written Ruby port on five of eight routes and ties on two more, driven largely by bypassing Rack on the hot path while navigating GVL constraints.
In this edition of This Week in Rails from the official blog, explore recent updates across the Rails codebase, including faster blank? checks, safer SQLite transaction rollbacks, and various other bug fixes and performance improvements.
The results for the annual Rails Community Survey are in, exploring developer trends, preferred tooling, and how teams are building applications across the ecosystem.
Following an initial round of funding eight projects last year, the Gem Fellowship is returning with another $100,000 commitment to support Ruby open source maintainers, along with an open invitation for companies and sponsors to join in backing critical ecosystem infrastructure.
Custom elements are a built-in browser feature that fit neatly into server-rendered Rails and Hotwire apps. Here is a look at building a clean, reusable <tool-tip> element without the overhead of wiring up a Stimulus controller or managing data attributes.
The Gem Fellowship program is entering its second year of providing funding to developers who build and maintain open source Ruby tools. Fundraising is underway to raise $150,000 to fund at least 15 fellowships, with companies encouraged to step up as sponsors to support community maintainers.
A look at clearing open-source backlogs using AI agents, drawing on real-world maintenance across gems in the Mongoid organization. AI helped reproduce complex test environments, add missing tests, and resolve tricky, decade-old issues in mongoid-locker.
An official announcement from RubyGems: RubyGems.org now displays security warnings directly on gem pages for versions affected by known vulnerabilities. Drawing from sources like the GitHub Advisory Database and Ruby Advisory Database, advisories show severity levels and summaries to help developers make safer dependency choices.
Ruby land was quiet today.