OBJECTIFY YOUR FORMS: BEYOND BASIC USER INPUT
summary
Shows a concrete before and after: a Rails CRUD form using accepts_nested_attributes_for that keeps price calculation in IceCream callbacks and grows validations and cleanup until it becomes hard to change and debug, then rebuilds the same meme‑based ice cream order with a Virtus gem form object, ActiveModel validations, nested form attributes, and a separate service object that performs persistence and the new price math so controllers and models stay small and testable.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:18Rails defaults and complexity
- 3:49Single responsibility problem
- 6:17Form objects explained
- 9:47Benefits of form objects
- 11:18Q&A begins
- 17:11Q&A wrap-up








