From: John Dong Date: Tue, 28 Aug 2007 16:27:38 +0000 (-0400) Subject: Merge from jdong X-Git-Url: https://projects.mako.cc/source/selectricity/commitdiff_plain/9bf50e50af5988af4cb44555fbb13154249e441d?hp=268caae2a993a7ce262cabdaedf391fe8c5aa400 Merge from jdong --- diff --git a/app/controllers/graph_controller.rb b/app/controllers/graph_controller.rb index 814eb36..ff29d8e 100644 --- a/app/controllers/graph_controller.rb +++ b/app/controllers/graph_controller.rb @@ -133,7 +133,7 @@ class GraphController < ApplicationController 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) diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index bb74bba..046228d 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -5,10 +5,10 @@

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.

- <%= form_tag :controller => 'voter', :action => 'index' %> + <% form_tag(:controller => 'voter', :action => 'index') do %>

<%= text_field :vote, :password %>

<%= submit_tag "Log In" %>

- <%= end_form_tag %> + <% end %>

<%= link_to 'Lost or forgot your token?', :controller => 'voter', :action => 'forgot_password' %>