Additionally, I find that the key problem with bloated models stems from missing domain models (often has-many-through models). Not from moving the logic of the existing models into more noun classes.
When I first started learning Rails 4 years ago, I watched a video of a talk you gave where you refactored a kludgy piece of code to use an additional resource/model. The code unraveled before our eyes.
Comments
When I first started learning Rails 4 years ago, I watched a video of a talk you gave where you refactored a kludgy piece of code to use an additional resource/model. The code unraveled before our eyes.
I still remember that as a Neo moment.
Don't suppose you have a link to that video? Or remember any more details so I could dig it up?
I think it was this one, but unfortunately I can't find the whole video.
https://www.youtube.com/watch?v=mp4z2eK1Avw
http://johannesbrodwall.com/2007/02/27/crud-rest-rails/