MVC in Rails: The Model-View-Controller Framework
One of the hallmarks of Module 2 at Turing is learning the MVC, or Model-View-Controller Framework. Learning the ins and outs of this framework will help a budding developer become a more effective architect of his projects. This sat well with me, as I discovered in Module 1, when one of my biggest weaknesses on projects was knowing where to begin. The MVC is essentially a design template for Rails, as it dictates three different types of objects and how they interact with one another - Models, Views, and Controllers. Each component has a distinctive job in Rails, and their appropriate handling and separation will help you create code that is cleaner, more portable, and more maintainable.
If the MVC thought about iterms of the request/response cycle, it might be more appropriately named the CMV model, as the request cycle goes from the browser to the controller, then to the model (and database). once the data is acquired, the controller passes the data to