Twitxy Saved

Chris Oliver

Verified account This account is verified. Learn more

@excid3

Do things that scare you. Rails Luminary building Hatchbox.io, GoRails.com, JumpstartRails.com, @remote_ruby Podcast
STL excid3.com Joined February 2008
891 Following 25K Followers 52K Posts

Latest posts 5

Chris Oliver Verified account @excid3
Rails 8.0 scaffolds use params.expect instead of require(...).permit(...).

The difference shows up when someone tampers with your params. A string where you expected a hash used to raise a 500. expect returns a 400, so junk requests stop paging you.
4 replies 0 reposts 29 likes 1.3K views View on X
Chris Oliver Verified account @excid3
Rails 8.1 adds structured events. Rails.event.notify sends a name and payload, plus tags and request context, to every subscriber.

Subscribers decide the format and destination: JSON logs, a data warehouse, your observability tool.
4 replies 2 reposts 86 likes 3.4K views View on X
Chris Oliver Verified account @excid3
Where did that redirect come from? Rails 8.1 logs the file and line under every Redirected to.

It's on in development for new apps. Older apps can add one line to development.rb.