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 - Ruby on Rails Tutorial
From the course: Ruby on Rails 5 Essential Training
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…
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.
Download courses and learn on the go
Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.
Contents
-
-
Introduction to databases7m 53s
-
(Locked)
Create a database2m 27s
-
(Locked)
Migrations3m 4s
-
(Locked)
Generate migrations4m 3s
-
(Locked)
Generate models7m 58s
-
(Locked)
Run migrations8m 22s
-
(Locked)
Migration methods7m 47s
-
(Locked)
Solve migration problems5m 41s
-
(Locked)
Challenge: Migrations for the CMS4m
-
(Locked)
Solution: Migrations for the CMS4m 20s
-
-
-
(Locked)
ActiveRecord and ActiveRelation4m 32s
-
(Locked)
Model naming5m 52s
-
(Locked)
Model attributes2m 51s
-
(Locked)
The Rails console3m 17s
-
(Locked)
Create records4m 53s
-
(Locked)
Update records3m 16s
-
(Locked)
Delete records2m 29s
-
(Locked)
Find records5m 48s
-
(Locked)
Query methods: Conditions7m 39s
-
(Locked)
Query methods: Order, limit, and offset6m 29s
-
(Locked)
Named scopes8m 26s
-
(Locked)
-
-
(Locked)
Relationship types7m 2s
-
(Locked)
One-to-one associations9m 42s
-
(Locked)
One-to-many associations7m 54s
-
(Locked)
belongs_to presence validation4m 18s
-
(Locked)
Many-to-many associations: Simple9m 58s
-
(Locked)
Many-to-many associations: Rich10m 17s
-
(Locked)
Traverse a rich association5m 24s
-
(Locked)
-
-
(Locked)
Read action: Index6m 31s
-
(Locked)
Read action: Show5m 22s
-
(Locked)
Form basics5m 13s
-
(Locked)
Create action: New4m 54s
-
(Locked)
Create action: Create5m 27s
-
(Locked)
Strong parameters6m 33s
-
(Locked)
Update actions: Edit/update7m 53s
-
(Locked)
Delete actions: Delete/destroy7m 11s
-
(Locked)
Flash hash7m 28s
-
Challenge: Pages and sections CRUD1m 43s
-
(Locked)
Solution: Pages and sections CRUD7m 38s
-
(Locked)
-
-
(Locked)
Challenge: AdminUser CRUD2m 44s
-
(Locked)
Solution: AdminUser CRUD7m 56s
-
(Locked)
Public area10m 35s
-
(Locked)
Public area navigation6m 3s
-
(Locked)
Nesting pages in subjects9m 44s
-
(Locked)
Nesting sections in pages7m 37s
-
(Locked)
Adding RubyGems: acts_as_list8m 25s
-
(Locked)
Finishing touches3m 30s
-
(Locked)