X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/34fe63727a8929d7e9c529feee1f0c1e827acdfa..404bd293fe621a270748df828c67e507b350920b:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index d1092a0..c914447 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,9 +13,10 @@ ActionController::Routing::Routes.draw do |map| # -- just remember to delete public/index.html. map.connect '', :controller => "site" - map.connect 'quickvote/create', + map.connect 'quickvote/:action/:id', :controller => 'quickvote', - :action => 'create' + :requirements => { :action => /(create|add_candidate)/ } + map.quickaction 'quickvote/:votename/:action', :controller => 'quickvote',