Locked lesson.
About this lesson
Exercise files
Download this lesson’s exercise file.
Understanding The Ruby on Rails MVC Architecture.docx59 KB
Quick reference
Understanding The Ruby on Rails MVC Architecture
Ruby on Rails uses MVC Architecture; which stands for Model, View, and Controller.
When to use
MVC is a popular architecture used by many web development tools such as Django, Node, Rails, and many others.
Instructions
MVC architecture is a way to separate out database stuff, from web pages, from complicated computer code. It makes developing web sites easier for us and allows us to create web sites that are easier to use.
The MVC architecture shows up within the Ruby on Rails directory structure. You'll see directories that correspond with Models (databases), Views (web pages), and Controllers (controllers) within your workspace directory.
MVC is a concept. You don't need to understand too much about it at this point, just be aware that it exists.
Hints & tips
- MVC stands for Model, View, and Controller
- Model deals with database stuff
- View deals with Web pages (we "view" a web page)
- Controllers deal with complicated computer code behind the scenes
- Controllers help Databases and Views interact
- Think of Controllers as "the brains" of your app
Lesson notes are only available for subscribers.