Chapter 1. Models
The Model layer of your Rails application often provides the core structure of your application. Especially if you’re following a RESTful application design pattern, the structure that is initially laid out in your models will carry through to your controllers and views.
The Model layer should also contain the business logic of your application. Therefore, the models of your application will often receive the majority of developer attention throughout a project’s lifecycle.
Because so much attention is paid to the models, and because so much responsibility is contained within them, it’s relatively easy for things to get out of hand in the models as an application grows and evolves. Also, because of the powerful nature of the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access