Prev | Current Page 129 | Next

David Berube

"Practical Reporting with Ruby and Rails"

rhtml. This layout will be used automatically
for all pages in the application by default. You can set up a layout for just one
controller, and you can also manually override layouts for a given action.
At this point, the application is complete.
Examining the Web Report Application
Let??™s launch the application using the built-in Rails test web server. You can do that by
using the following command:
ruby script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment ...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. INT => stop (no restart).
** Mongrel available at 0.0.0.0:3000
** Use CTRL-C to stop.
Open a web browser and enter the address http://localhost:3000/home to see the
application. You should see a result similar to Figure 5-1.
CHAPTER 5 n CONNECTING YOUR REPORTS TO THE WORLD 87
nNote The Rails test server can use one of two web servers: WEBrick, which is installed by default, and
Mongrel, which is faster.


Pages:
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
Mark Morrison for your soul Mario George Michael Mobb Deep