From 34c44145a77003ac4fcabd0b865f039bc24f97f4 Mon Sep 17 00:00:00 2001 From: John Dong Date: Tue, 28 Aug 2007 12:26:21 -0400 Subject: [PATCH] Clean up a deprecation warning and another warning. --- app/controllers/graph_controller.rb | 2 +- app/views/site/index.rhtml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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' %>

-- 2.39.5