]> projects.mako.cc - selectricity-live/blobdiff - config/routes.rb
changed properties and the name of hyperchad to selectricity
[selectricity-live] / config / routes.rb
old mode 100644 (file)
new mode 100755 (executable)
index d1092a0..e400b5d
@@ -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?