So what is rails?
it's a web app framework for ruby's
That means it's a set of code libraries that can provide general functionality that can be used, and reused. It also has default values built in and flow controls. Libraries usually don't set default values.
Rails uses MVC Architecture
MVC architecture stands for: Model View Controler
The Model is the objects
The View is the presentation layer (what the user sees and interacts with)
The Control processes and responses to events - such as user actions
So...
Decision code goes in the controller
Data code goes in the model
Presentation code goes in the view
Rails refers to the view as the action view
Rails refers to the model as the active record
Rails refers to the model and view together as the "action pack"
it's a web app framework for ruby's
That means it's a set of code libraries that can provide general functionality that can be used, and reused. It also has default values built in and flow controls. Libraries usually don't set default values.
Rails uses MVC Architecture
MVC architecture stands for: Model View Controler
The Model is the objects
The View is the presentation layer (what the user sees and interacts with)
The Control processes and responses to events - such as user actions
So...
Decision code goes in the controller
Data code goes in the model
Presentation code goes in the view
Rails refers to the view as the action view
Rails refers to the model as the active record
Rails refers to the model and view together as the "action pack"
No comments:
Post a Comment