CSC/ECE 517 Fall 2011/ch4 4e ar

From Expertiza_Wiki
Jump to navigation Jump to search

Lecture 10

Model, View and Controller

Model

Definition: The model represents all the data in the application. A model is typically mapped to a table in the database. It maintains the state of an application and responds to changes to alter it.

View

Definition:

Controller

Definition:

A Rails Project

Start a rails project

Use scaffolds to build

The three things

Migrations

Relationships

Layouts