CSC/ECE 517 Fall 2011/ch4 4e ar

From Expertiza_Wiki
Revision as of 23:48, 18 October 2011 by Rdmanoha (talk | contribs) (→‎Model)
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. The model provides the developer with a consistent interface to handle and manipulate the data in an application. It hides a object-relation-mapping underneath, allowing the application to be portable to various database management systems.

View

Definition:

Controller

Definition:

A Rails Project

Start a rails project

Use scaffolds to build

The three things

Migrations

Relationships

Layouts