:format'
map.connect ':controller/:action/:id'
end
Note that to make the index action of your homepage controller the page for /, you also
need to delete the file public/index.html.erb, so do that now.
To improve the interface, you??™ll use the Calendar Date Select plug-in, which gives you
a nice calendar from which to pick dates. Users often prefer selecting dates from calendars,
since they can verify the entry visually. Install the plug-in with this command:
CHAPTER 12 n CREATING REPORTS WITH RUBY AND MICROSOFT OFFICE 246
ruby script/plugin install ??
://calendardateselect.googlecode.com/svn/tags/calendar_date_select
Finally, run the script using the following command:
ruby script/server
You can see the application by pointing a web browser to http://localhost:3000/.
Click Upload Log. You should see a screen similar to Figure 12-2. Enter a few fictitious
names, employers, and grades. A passing grade is 70, and the report groups by
passing grades, so enter at least one grade of at least 70.
Figure 12-2.
Pages:
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353