This content originally appeared on DEV Community and was authored by Mengjia L
Model
- The Model represents the business layer of the application, responsible for handling business logic, validations, data persistence, and interactions with the database. (source)
Presenters (View)
- There should be no ActiveRecord queries in views (source).
- It should be separate from the business logic (here's a great explanation in case you are wondering what business logic means)
Controller
- A controller can be thought of as a middleman between models and views. It makes the model data available to the view, so it can display that data to the user, and it saves or updates user data to the model (source).
This content originally appeared on DEV Community and was authored by Mengjia L
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.

APA
MLA
Mengjia L | Sciencx (2024-08-09T21:58:44+00:00) Ruby Design Patterns (WIP). Retrieved from https://www.scien.cx/2024/08/09/ruby-design-patterns-wip/
" » Ruby Design Patterns (WIP)." Mengjia L | Sciencx - Friday August 9, 2024, https://www.scien.cx/2024/08/09/ruby-design-patterns-wip/
HARVARDMengjia L | Sciencx Friday August 9, 2024 » Ruby Design Patterns (WIP)., viewed ,<https://www.scien.cx/2024/08/09/ruby-design-patterns-wip/>
VANCOUVERMengjia L | Sciencx - » Ruby Design Patterns (WIP). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/09/ruby-design-patterns-wip/
CHICAGO" » Ruby Design Patterns (WIP)." Mengjia L | Sciencx - Accessed . https://www.scien.cx/2024/08/09/ruby-design-patterns-wip/
IEEE" » Ruby Design Patterns (WIP)." Mengjia L | Sciencx [Online]. Available: https://www.scien.cx/2024/08/09/ruby-design-patterns-wip/. [Accessed: ]
rf:citation » Ruby Design Patterns (WIP) | Mengjia L | Sciencx | https://www.scien.cx/2024/08/09/ruby-design-patterns-wip/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.