Controllers: The 'Glue' between the Model & View

Models, Models, Models

We're going to spend a good chunk of the day working on models as a second pass today.

Controllers and Routing

We're going to discuss routing and controllers. By the end of this lesson, you will have learned to create dedicated controllers for each model.

Objectives:

  • Understand the purpose of a controller (to collect information from models and then render the view)
  • Create controllers in Sinatra for various Models
  • Render the data from a Controller into a View

results matching ""

    No results matching ""