X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/aca2ebb98aeae4744e3c50f9fca7e08a1dd784a2..f7761282a6a0744caadfa6ddfb44f09d68c9f928:/app/views/quickvote/_candidate_list.rhtml diff --git a/app/views/quickvote/_candidate_list.rhtml b/app/views/quickvote/_candidate_list.rhtml index f4f1c06..64aa979 100644 --- a/app/views/quickvote/_candidate_list.rhtml +++ b/app/views/quickvote/_candidate_list.rhtml @@ -1,18 +1,18 @@ <% %> -<% if @flash[:candlist] %> +<% if flash[:candlist] %> <% end %> -<%= form_remote_tag :update => 'candlist', +<% form_remote_tag(:update => 'candlist', :url => { :action => 'add_candidate' }, - :complete => "Field.focus('ajax_newcandidate')" %> + :complete => "Field.focus('ajax_newcandidate')") do %>

<%= text_field "ajax", "newcandidate", :size => 40 %> <%= submit_tag "Add(+)" %>

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