Prev | Current Page 275 | Next

David Berube

"Practical Reporting with Ruby and Rails"

delete("Content-Disposition")
super
end
end
Save this as app/controllers/report_controller.rb.
Creating the Layout and Views
Next up is the layout for the report, as shown in Listing 10-4.
Listing 10-4. Report HTML Layout (app/views/layouts/application.html.erb)
"http://www.w3.org/TR/xhtml1/ DTD/xhtml1-transitional.dtd">



<%= @page_title || 'Apache Log Tracker'%>
<%= stylesheet_link_tag 'apachetracker' %>
<%= javascript_include_tag 'prototype', 'scriptacolous', 'effects'%>

CHAPTER 10 n CALCULATING COSTS BY ANALYZING APACHE WEB LOGS 198

<%flash.each do |key, text|%>

<%=text.gsub("\n", "\n
")%>


<%end%>
<%= @content_for_layout %>


Save this as app/views/layouts/application.html.erb.


Pages:
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
mieszkania do wynajecia tychy Magma Lombard mimir elixir Mech