diff --git a/config/routes.rb b/config/routes.rb index 20d6dc1..71d05b3 100644 --- a/config/routes.rb +++ b/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