Skip to content

Commit

Permalink
Cleanup route file
Browse files Browse the repository at this point in the history
  • Loading branch information
bousquet committed Jan 13, 2013
1 parent d82ad52 commit 745229e
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions config/routes.rb
@@ -1,21 +1,7 @@
ActionController::Routing::Routes.draw do |map|
# Add your own custom routes here.
# The priority is based upon order of creation: first created -> highest priority.

# Here's a sample route:
# map.connect 'products/:id', :controller => 'catalog', :action => 'view'
# Keep in mind you can assign values other than :controller and :action
map.connect "album/:id", :controller => "gallery", :action => "album"
map.connect "", :controller => "gallery", :action => "index"

# You can have the root of your site routed by hooking up ''
# -- just remember to delete public/index.html.
# map.connect '', :controller => "welcome"

# Allow downloading Web Service WSDL as a file with an extension
# instead of a file named 'wsdl'
map.connect ':controller/service.wsdl', :action => 'wsdl'

map.connect 'album/:id', :controller=>"gallery", :action=>"album"
map.connect '', :controller=>"gallery", :action=>"index"
# Install the default route as the lowest priority.
map.connect ':controller/:action/:id'
map.connect ":controller/:action/:id"
end

0 comments on commit 745229e

Please sign in to comment.