4 ms·
That's very debatable, and pretty rails-specific, IMHO. Conventional wisdom in other ecosystems is instead to have a business logic layer between your controlle
by mercurial 14y ago
That's very debatable, and pretty rails-specific, IMHO. Conventional wisdom in other ecosystems is instead to have a business logic layer between your controller and your persistence layer. I've always found this to be good advice, as it makes the code more testable and makes reasoning about manipulating different models in the same operation easier.
- josephlord 14y agoThe Rails models ARE the "business logic layer" between the controller and the persistence layer (the database itself). I don't want to get into exactly what MVC should mean and whether any particular framework does it right though.
- mercurial 14y agoThat's how they're traditionally used, but this does not mean doing something cleaner is impossible.