Prev | Current Page 115 | Next

David Berube

"Practical Reporting with Ruby and Rails"

Rails, like Nitro and Merb, is a Model-View-
Controller (MVC) framework. Following the MVC pattern, code is generally divided into
three parts:
75
C H A P T E R 5
??? The model represents the data used by the application.
??? The view represents the actual presentation of the data.
??? The controller controls the flow of the application. A controller often manipulates
models to achieve an action requested by a user, and then presents the results with
a view.
You can find out more about MVC frameworks at http://en.wikipedia.org/wiki/
Model-view-controller. You can find out more about Rails at its official home: http://
rubyonrails.org.
Now, let??™s take a look at how to create a Rails application to deliver a web report.
Live Intranet Web Reporting with Rails
Let??™s return to Transmegtech Studios, the fictional game development company we??™ve
used for the examples in the previous chapters. Transmegtech has decided to hire actors
to do full-motion videos for its latest games. In order to save on costs, the studio is hiring
several full-time actors and having them act in different games simultaneously.


Pages:
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
Stal rezerwacja hoteli pomiary wiatru Nike Buty Męskie Air Flex Trainer Lea Biżuteria swarovskiego