I read "Enterprise Rails" (http://oreilly.com/catalog/9780596515201). The author suggests having two subfolders, called logical, physical in the model folder. It is a good idea to organize the code. It will also allow you to create a business layer. I just want to know how the rail community talks about this. Is it a good idea to have a separate logic level?
Sometimes I use a “service” layer along the model and controllers.
I just add it to autoload_path.
But most of the time I manage to establish logic in a stateless model or model. Thus, it goes directly to the model folders.
Source: https://habr.com/ru/post/1784442/More articles:Strange type operator behavior? - c ++Почему ASP.NET ViewState сохранена с помощью asp: dropdownlist, но не asp: table? - dynamicAuthentication between a client-side JavaScript application and a server-side HTTP interface? - javascriptWhy do I need a standard code? - c ++How to set the __str__ method for all ctype structure classes? - pythonrails 2 replace_html puts javascript on the page - prototypejsAptana, CSS editor (customization) - cssIs there a library for interacting with social networks? - mediaJavascript / jQuery: splitting content into two parts - javascriptQuery with HAVING and WHERE - sqlAll Articles