]> projects.mako.cc - selectricity-live/blobdiff - config/routes.rb
Added the ability to do ajax adding of candidates so there is no longer
[selectricity-live] / config / routes.rb
index d1092a0bbe4511b6958c915b078785085e563dea..c914447dccc5c090347cfc23abc8fd16d793c7b0 100644 (file)
@@ -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',

Benjamin Mako Hill || Want to submit a patch?