The Request Cycle

Goals

  • recapitulate how a HTTP request works

  • identify the router, models, controllers and views in the code

Steps

Step 1: MVC

Discussion: What is this diagram?


Talk through this diagram of the request cycle!

Step 2: find the router

hint: it's just one file, called routes.rb. Where is it stored?

Step 3: find the models

hint: it's a folder where all the models will go

Step 4: find the controllers

hint: it's a folder where all the controllers will go

Step 5: find the views

hint: it's a folder where all the views will go

Next Step: