projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to Rails 1.1.
[selectricity-live]
/
config
/
routes.rb
diff --git
a/config/routes.rb
b/config/routes.rb
index c9beb55e174dca775d5d5976e19e085a57c32c70..ed0625d8db889e12d5135761263b766cdadf73b7 100644
(file)
--- a/
config/routes.rb
+++ b/
config/routes.rb
@@
-1,11
+1,14
@@
ActionController::Routing::Routes.draw do |map|
ActionController::Routing::Routes.draw do |map|
- # Add your own custom routes here.
# The priority is based upon order of creation: first created -> highest priority.
# The priority is based upon order of creation: first created -> highest priority.
- #
Here's a sample
route:
+ #
Sample of regular
route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
+ # Sample of named route:
+ # map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
+ # This route can be invoked with purchase_url(:id => product.id)
+
# You can have the root of your site routed by hooking up ''
# -- just remember to delete public/index.html.
map.connect '', :controller => "site"
# You can have the root of your site routed by hooking up ''
# -- just remember to delete public/index.html.
map.connect '', :controller => "site"
Benjamin Mako Hill
||
Want to submit a patch?