RailsConf 2017: Decouple Your Models with Form Objects by Andrew Markle

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=d9vMENoqxEE



Duration: 26:36
4,685 views
94


Forms are a crucial part of every app and Rails has good defaults for building them—unless you need something complicated. Maybe you want a multi-step wizard? Or maybe you'd like to pluck attributes from any model? Validation becomes a pain point. So you introduce a state machine, or nest your models, or do some other calisthenic to get everything working. Thankfully there's a better way! This talk takes a complicated wizard and converts it into a few simple form objects—it's a deep dive on decoupling models and how you can leverage Trailblazer's Reform gem to make it even easier.




Other Videos By Confreaks


2017-05-27RailsConf 2017: Deep Dive into Docker Containers for Rails Developers by Christopher Rigor
2017-05-27RailsConf 2017: ​Rails APIs: The Next Generation by Derek Carter
2017-05-27RailsConf 2017: ​Keeping Code Style Sanity in a 10-year-old Codebase by Gabi Stefanini
2017-05-26RailsConf 2017: A Deep Dive Into Sessions by Justin Weiss
2017-05-26RailsConf 2017: Outside the (Web) Box: Using Ruby for Other Protocols by Danielle Adams
2017-05-26RailsConf 2017: Deep Dive into Docker Containers for Rails Developers by Christopher Rigor
2017-05-26RailsConf 2017: ​Recurring Background Jobs with Sidekiq-scheduler by Andreas Fast & Gianfranco Zas
2017-05-26RailsConf 2017: Your App Server Config is Wrong by Nate Berkopec
2017-05-26RailsConf 2017: Tailoring Mentorship: Achieving the Best Fit by Jonathan Wallace
2017-05-26RailsConf 2017: Rails 5.1: Awesome Features and Breaking Changes by Claudio B
2017-05-26RailsConf 2017: Decouple Your Models with Form Objects by Andrew Markle
2017-05-26RailsConf 2017: Exploring the History of a 12-year-old Rails Application by Nathan Walls
2017-05-26RailsConf 2017: Implementing the Web Speech API for Voice Data Entry by Cameron Jacoby
2017-05-21!!Con 2017: ENHANCE! Upscaling Images with Neural Networks by Geoffrey Litt
2017-05-20DevOpsDays Seattle 2017: CoffeeOps by Jason Yee
2017-05-20DevOpsDays Seattle 2017: Driving Technical Change by Terrence Ryan
2017-05-20DevOpsDays Seattle 2017: Taming The Chaos: After The Quick Wins by Julia Wester
2017-05-19RailsConf 2017: What Comes After SOLID? Seeking Holistic Software Quality by Ariel Caplan
2017-05-19RailsConf 2017: Observing Chance: A Gold Master Test in Practice by Jake Worth
2017-05-19RailsConf 2017: Portable Sessions with JSON Web Tokens by Lance Ivy
2017-05-19RailsConf 2017: Do Your Views Know Too Much? by Jason Charnes