]> projects.mako.cc - selectricity/blobdiff - config/routes.rb
added links to hyperchad anywhere
[selectricity] / config / routes.rb
index d1092a0bbe4511b6958c915b078785085e563dea..e400b5d8799df320cf22e328a1df1d08fa85527d 100644 (file)
@@ -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',

Benjamin Mako Hill || Want to submit a patch?