I had the honor of speaking at RailsConf 2017 on refactoring views. I’m trying to put into words what the experience was like. Until then, here are my slides from the presentation.
The logical place to put view-related logic is… inside your view, right? “A little logic here… a little logic there…” but all of a sudden we hardly recognize our front-end code. A quick glance through our code and we can’t tell our Ruby apart from our HTML. Don’t worry; this is a fun opportunity for some refactoring! Come see several approaches you can start using today to clean up the front-end.