Listing 13-5. Budget Optimizer Application-Wide Layout (app/views/layouts/
application.rhtml)
<%=@content_for_layout%>
Save this as app/views/layouts/application.rhtml.
The application will have two views. Listing 13-5 shows the first view, which represents
your report creation form.
Listing 13-5. Report Creation Form (app/views/budget_optimizer/index.rhtml)
Create AdWords Report
<% form_tag(:action => 'report') do %>
Target number of clicks: <%=text_field_tag 'target_clicks', '10',
:size=>4%>
<%=submit_tag 'Create Report', :id=>'create_report'%>
<% end %>
Save this view as app/views/budget_optimizer/index.
Pages:
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390