Rails Coach

002 RC Model View Controller (MVC)


Listen Later

This is a brief explanation of how Rails implements the MVC design pattern to create such an awesome framework for building websites.
In a nutshell, when a request comes to a Ruby on Rails website, it's handed the dispatcher. The dispatcher consults the routes provided in the application to determine which Controller and action to pass the request to. A Controller is a class which has methods called actions on it. The request is handled by a particular action on a controller.
The Controller may then respond by gathering data from the database through the Models. I can then convert the Models' data into text or pass it to a template called a View to return the response.
Most HTML responses (web pages) are returned by rendering Model data in a View.
Download this Episode
...more
View all episodesView all episodes
Download on the App Store

Rails CoachBy Charles Max Wood

  • 4.7
  • 4.7
  • 4.7
  • 4.7
  • 4.7

4.7

3 ratings


More shows like Rails Coach

View all
Teach Me To Code » Screencasts by Charles Max Wood

Teach Me To Code » Screencasts

11 Listeners

JavaScript Jabber by Charles M Wood

JavaScript Jabber

234 Listeners

iPhreaks by Charles M Wood

iPhreaks

17 Listeners

Ruby Rogues by Charles M Wood

Ruby Rogues

45 Listeners

The Freelancers' Show by Charles M Wood

The Freelancers' Show

23 Listeners

React Native Radio by Jamon Holmgren, Robin Heinze, Mazen Chami

React Native Radio

59 Listeners

My JavaScript Story by Charles M Wood

My JavaScript Story

4 Listeners

JavaScript Jabber by Charles M Wood

JavaScript Jabber

62 Listeners

Ruby Rogues by Charles M Wood

Ruby Rogues

21 Listeners

Adventures in Angular by Charles M Wood

Adventures in Angular

15 Listeners