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

From Expertiza_Wiki
Jump to navigation Jump to search
Line 4: Line 4:
===Model===
===Model===
'''Definition''': The model represents all the data in the application.  
'''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.  
 
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===
===View===

Revision as of 23:48, 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. 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