From the course: Ruby on Rails 5 Essential Training

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Understanding MVC architecture

Understanding MVC architecture - Ruby on Rails Tutorial

From the course: Ruby on Rails 5 Essential Training

Start my 1-month free trial

Understanding MVC architecture

- [Narrator] The Ruby On Rails Framework uses an MVC Architecture. It's a fundamental part of how the framework is structured and it is designed to help us not repeat ourselves. MVC is a fundamental aspect of rails, which is important to understand right from the start. M, V, and C. The 'M' stands for Model, the 'V' stands for View, and the 'C' stands for Controller. The Model refers to the data objects that we use. It's the object oriented approach to design. Many things can be objects in our models but the data in our Database will be the most common type of object that we'll put there. The View is the presentation layer. It's what the user sees and interacts with. The web pages, the HTML, the CSS, the JavaScript. The Controller processes and responds to user events. Such as clicking on links and submitting forms. The Controller makes decisions based on the request and then controls what happens in response. It controls the interaction with our Models and our Views. Let's take a…

Contents