I Like My Params Like I Like My Coffee
summary
Migrating a large Rails codebase to Strong Parameters (gem for Rails 3/3.2) reveals concrete traps: a 1000+ line controller with deep nesting including additional_attributes_attributes breaks unless temporarily whitelisted with permit!; API tests return 400 where pre-Strong-Params gave 204; 55 PRs and 11 reverts track the work; a bug turns out to be Ruby hash ordering — order matters — fixed by moving timezone_name to the front; a helper gem strong_like_bull is created and sees 300+ downloads.
AI-written summary · about
chapters (6)
- 0:00Introduction and context
- 2:12Strong parameters overview
- 4:58Practical tips for developers
- 8:41Developing the gem and solutions
- 12:46Solving the mystery
- 17:04The role of order and closing
related talks
38mOur Fight Against Super Bad Patterns in Legacy Rails Apps
41mOff the Tracks - Challenging the Rails Mindset
39mExploring Rails anti-patterns
32mSecuring Your Rails App
26mLet the Junior Dev Upgrade Rails
42mPowerful Rails Features You Might Not Know
32mRails Sustainable Productivity
35mThe worst Ruby codes I've seen in my life
