Added support for voting in QuickVotes.
[selectricity] / config / routes.rb
index ed0625d8db889e12d5135761263b766cdadf73b7..af9820fdab90256d33fe6a0b7b17ed8ac4023b52 100644 (file)
@@ -13,6 +13,18 @@ ActionController::Routing::Routes.draw do |map|
   # -- just remember to delete public/index.html.
   map.connect '', :controller => "site"
 
+  map.connect 'quickvote/create',
+             :controller => 'site',
+             :action => 'create_quickvote'
+             
+  map.quickconfirm 'quickvote/:votename/confirm',
+              :controller => 'voter',
+             :action => 'confirm'
+
+  map.quickvote 'quickvote/:votename',
+                :controller => 'voter',
+               :action => 'quickvote'
+
   # Allow downloading Web Service WSDL as a file with an extension
   # instead of a file named 'wsdl'
   map.connect ':controller/service.wsdl', :action => 'wsdl'

Benjamin Mako Hill || Want to submit a patch?