Structured logging in Rails 8.1 with Rails.event ruby-on-rails

Structured logging in Rails 8.1 with Rails.event

Structured logging lands in Rails 8.1 with the Rails.event API. How the Structured Event Reporter replaces regex-parsed log lines with JSON events, plus tags, context, schemas, debug mode, and how to subscribe and test events in your own app.

Mar 16, 2026

What is params.expect and how to use it in Rails 8? ruby

What is params.expect and how to use it in Rails 8?

params.expect in Rails 8 replaces require/permit and fixes a real weakness: crafted params like ?user=string used to raise NoMethodError and 500 errors. How the new syntax works, how it handles arrays with precision, and how to migrate your controllers.

Jan 27, 2025