- map.quickvote 'quickvote/:votename',
- :controller => 'voter',
- :action => 'quickvote'
+
+ map.connect 'quickvote/:action/:id',
+ :controller => 'quickvote',
+ :requirements => { :action => /(create|add_candidate|sort_candidates|my_quickvotes)/ }
+
+ map.quickaction 'quickvote/:ident/:action',
+ :controller => 'quickvote',
+ :requirements => { :action => /(change|confirm|results)/ }
+
+ map.quickvote 'quickvote/:ident',
+ :controller => 'quickvote', :action => 'index'