From the course: Ruby on Rails 6 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Understand MVC architecture - Ruby on Rails Tutorial
From the course: Ruby on Rails 6 Essential Training
Understand MVC architecture
- [Instructor] The Ruby on Rails framework uses an MVC architecture. It's a fundamental part of how the framework is structured and it's designed to help us to not repeat ourselves. MVC is a fundamental aspect of Rails and it's important to understand it 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 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 webpages, the HTML, the CSS, and the JavaScript. The controller processes and responds to user events, such as clicking on links and submitting forms. The controller will make decisions based on the request and then control what happens in response. It…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.