data[names[candidate]] = votes
end
- pie = GruffGraff.new ( :graph_type => Gruff::Pie,
+ pie = GruffGraff.new( :graph_type => Gruff::Pie,
:title => "Percentage of First Place Votes",
:data => data)
send_data(*pie.output)
<p>If you have received an email with a token inviting you to vote in
an ongoing election, you can log in to vote using your token below.</p>
- <%= form_tag :controller => 'voter', :action => 'index' %>
+ <% form_tag(:controller => 'voter', :action => 'index') do %>
<p><%= text_field :vote, :password %></p>
<p><%= submit_tag "Log In" %></p>
- <%= end_form_tag %>
+ <% end %>
<p><%= link_to 'Lost or forgot your token?', :controller => 'voter', :action => 'forgot_password' %></p>