Prev | Current Page 142 | Next

David Berube

"Practical Reporting with Ruby and Rails"

Let??™s take a look at it.
CHAPTER 5 n CONNECTING YOUR REPORTS TO THE WORLD 98
Examining the Graphical Reporting Application
You can run the example by using the following command:
ruby script/server
Now open a web browser and browse to http://localhost:3000/. You??™ll see a screen
showing the available players and games, just as in the example in Chapter 4. If you select
Michael Southwick and Tech Website Baron from the drop-down lists, you will see a
screen similar to Figure 5-3.
Figure 5-3. Flash chart showing player statistics
As you move your mouse over the various elements, you will see a tool tip with the
details of each item; it should also highlight slightly.
Let??™s take a look at the code line by line.
CHAPTER 5 n CONNECTING YOUR REPORTS TO THE WORLD 99
Dissecting the Code
The models and application layout are fairly straightforward. The models are the same
ones you used in Chapters 3 and 4. The application layout (Listing 5-20) is just a short
wrapper for the application, which includes a bit of CSS to make the application more
attractive.


Pages:
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
mieszkanie sosnowiec Życie to sztuka rolety rzymskie Futro parasole reklamowe