Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |