I read "Enterprise Rails" (http://oreilly.com/catalog/9780596515201) The author suggests to have two subfolders named logical, physical under the models folder. It sounds like a good idea to organize the code. It will also allow to have a business layer. I just want to know how rails community feels about this. Is it a good idea to have a separate logic layer?
Sometimes I use a "service" layer along the model and controller ones.
I just add it to the autoload_path.
But most of the time, I manage to set the logic into models, or stateless models. So it goes directly into the models folders.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With