Creation of new VotingBooth rails application to expose the
[selectricity-live] / config / routes.rb
1 ActionController::Routing::Routes.draw do |map|
2   # Add your own custom routes here.
3   # The priority is based upon order of creation: first created -> highest priority.
4   
5   # Here's a sample route:
6   # map.connect 'products/:id', :controller => 'catalog', :action => 'view'
7   # Keep in mind you can assign values other than :controller and :action
8
9   # You can have the root of your site routed by hooking up '' 
10   # -- just remember to delete public/index.html.
11   # map.connect '', :controller => "welcome"
12
13   # Allow downloading Web Service WSDL as a file with an extension
14   # instead of a file named 'wsdl'
15   map.connect ':controller/service.wsdl', :action => 'wsdl'
16
17   # Install the default route as the lowest priority.
18   map.connect ':controller/:action/:id'
19 end

Benjamin Mako Hill || Want to submit a patch?