Prev | Current Page 276 | Next

David Berube

"Practical Reporting with Ruby and Rails"


Of course, you need a CSS style sheet for the home page, as shown in Listing 10-5.
Listing 10-5. Home Page CSS Style Sheet (public/stylesheets/apachetracker.css)
body { font-family: franklin gothic book,
helvetica,
verdana,
sans-serif;
padding-left:1em;
}
h1, h2 { font-family: franklin gothic heavy,
arial black, sans-serif;
font-weight: normal; }
h3 { font-family: franklin gothic medium;
font-weight: normal; }
a:visited { color:black }
a:hover { text-decoration: none; }
a { }
h3 { padding-left:2em;}
form {
padding-left: 4em;
}
#flash_notice, #flash_error {
padding:1em; margin:1em;
border: 3px dashed #cecece;
}
CHAPTER 10 n CALCULATING COSTS BY ANALYZING APACHE WEB LOGS 199
Save this as public/stylesheets/apachetracker.css.
Next, let??™s take a look at the views. The first is the main home page view from which
the various actions can be accessed, shown in Listing 10-6.
Listing 10-6. Home Page RHTML View (app/views/home/index.html.erb)

Apache Log Analyzer


Would you like to...


.


Pages:
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288

Marilou Moody Blues teksty pl jak rysowa LMC