X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/04f827dd4647f3a7d6e5bd8f5e9083c730a8dccc..0f9228bed08f8f5e472b27a46ce05de27afd880b:/config/routes.rb diff --git a/config/routes.rb b/config/routes.rb index d1092a0..e400b5d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,9 +13,9 @@ 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|sort_candidates)/ } map.quickaction 'quickvote/:votename/:action', :controller => 'quickvote',