diff options
author | David Cabo <david@calibea.com> | 2011-09-19 00:41:26 +0200 |
---|---|---|
committer | David Cabo <david@calibea.com> | 2011-09-19 00:41:26 +0200 |
commit | cb098ef4ff0b504b43121d60aab7108c429ad7c6 (patch) | |
tree | 9095c8bae76b82682478313e5d161919dab11017 | |
parent | 92a82a11a852b285bd2e877bee857b8236f25513 (diff) |
Add custom-routes file for themes to override
-rw-r--r-- | config/custom-routes.rb | 1 | ||||
-rw-r--r-- | config/routes.rb | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/config/custom-routes.rb b/config/custom-routes.rb new file mode 100644 index 000000000..16b3c6b0c --- /dev/null +++ b/config/custom-routes.rb @@ -0,0 +1 @@ +#Â Placeholder to be overriden by themes if necessary
\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 414a47908..fcdc70d2e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,12 +7,15 @@ # $Id: routes.rb,v 1.92 2009-10-14 22:01:27 francis Exp $ ActionController::Routing::Routes.draw do |map| - + # The priority is based upon order of creation: first created -> highest priority. # Sample of regular route: # map.connect 'products/:id', :controller => 'catalog', :action => 'view' # Keep in mind you can assign values other than :controller and :action + + # Allow easy extension from themes. Note these will have the highest priority. + require 'config/custom-routes' map.with_options :controller => 'general' do |general| general.frontpage '/', :action => 'frontpage' |