com/pages/css_graphs.
CHAPTER 11 n TRACKING THE NEWS WITH GOOGLE NEWS 226
nNote Unfortunately, CSS Graphs Helper currently supports only one chart per page. And, while it??™s
extremely easy to use, it has a limited range of chart types. If you??™re looking for more complicated charts or
for many charts per page, consider using the Gruff graphing library (which was created by the same person
who created CSS Graphs Helper). You can find examples of Gruff in Chapters 3, 4, and 10, and at the Gruff
home page: http://nubyonrails.com/pages/gruff.
Before we start, if you haven??™t already installed the Rails gem, do so now:
gem install rails
Now create the framework of your Rails application as follows:
rails newstracker
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create components
create db
. . .
create log/server.log
create log/production.log
create log/development.log
create log/test.log
Next, create a report controller, as follows:
cd newstracker
ruby script/generate controller Reporter
exists app/controllers/
exists app/helpers/
create app/views/reporter
exists test/functional/
create app/controllers/reporter_controller.
Pages:
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327