CSC/ECE 517 Fall 2011/ch4 4e ar: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 3: Line 3:
==Model, View and Controller==
==Model, View and Controller==
===Model===
===Model===
'''Definition''':
'''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===
===View===

Revision as of 23:41, 18 October 2011

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