A Rails Primer
Before getting into some code, I want to take a couple of pages to provide some context for how Ruby on Rails works. Rails uses the MVC approach, short for Model-View-Controller. This design breaks an application into three parts:
Model, the data used by the application
View, what the user sees
Controller, primarily a functional agent between the other two
Rails has a fourth tool, called helpers, whose role falls between ...