Created
January 21, 2009 18:36
-
-
Save edavis10/50095 to your computer and use it in GitHub Desktop.
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
### Modified | |
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 | |
# Allow Redmine plugins to map routes and potentially override them | |
Redmine::Hook.call_hook :routes, :map => map | |
map.home '', :controller => 'welcome' | |
map.signin 'login', :controller => 'account', :action => 'login' | |
map.signout 'logout', :controller => 'account', :action => 'logout' | |
### Core | |
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 | |
# Allow Redmine plugins to map routes and potentially override them | |
Rails.plugins.each do |plugin| | |
map.from_plugin plugin.name.to_sym | |
end | |
map.home '', :controller => 'welcome' | |
map.signin 'login', :controller => 'account', :action => 'login' | |
map.signout 'logout', :controller => 'account', :action => 'logout' | |
map.connect 'wiki/:id/:page/:action', :controller => 'wiki', :page => nil | |
map.connect 'roles/workflow/:id/:role_id/:tracker_id', :controller => 'roles', :action => 'workflow' | |
map.connect 'help/:ctrl/:page', :controller => 'help' | |
#map.connect ':controller/:action/:id/:sort_key/:sort_order' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment