projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed colors on graphs
[selectricity]
/
config
/
routes.rb
diff --git
a/config/routes.rb
b/config/routes.rb
index 82474df671b63add51df0e59463c75874aaebf78..e2f458d3e2afeed8eea48e44df290ed4b8c0b728 100644
(file)
--- a/
config/routes.rb
+++ b/
config/routes.rb
@@
-11,8
+11,18
@@
ActionController::Routing::Routes.draw do |map|
# You can have the root of your site routed by hooking up ''
# -- just remember to delete public/index.html.
# You can have the root of your site routed by hooking up ''
# -- just remember to delete public/index.html.
- map.connect '', :controller => "site", :action => "index"
+ map.connect '', :controller => "front"
+
map.connect '/sitealizer/:action', :controller => 'sitealizer'
map.connect '/sitealizer/:action', :controller => 'sitealizer'
+
+ map.connect 'voter/:action',
+ :controller => 'voter',
+ :requirements => { :action => /(review|confirm|authenticate|index|login|reminder)/ }
+
+ map.votepassword 'voter/:urlpassword',
+ :controller => 'voter',
+ :action => 'index'
+
map.connect 'quickvote/:action/:id',
:controller => 'quickvote',
:requirements => { :action => /(create|add_candidate|sort_candidates|my_quickvotes)/ }
map.connect 'quickvote/:action/:id',
:controller => 'quickvote',
:requirements => { :action => /(create|add_candidate|sort_candidates|my_quickvotes)/ }
Benjamin Mako Hill
||
Want to submit a patch?