aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-07-16 10:30:35 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-07-16 10:30:35 +0100
commit222c034944eaf8b542a6c128131cef181d01e281 (patch)
tree715c4b74be7a534d074b758e2f3a64d1a0d18091
parent8e4dca730685755c6e1ea268a48a1ecd0dd384fb (diff)
Don't use dispatcher/reloading trick with routes - it won't work.
-rw-r--r--lib/config/custom-routes.rb22
1 files changed, 9 insertions, 13 deletions
diff --git a/lib/config/custom-routes.rb b/lib/config/custom-routes.rb
index b8afebd..4184d10 100644
--- a/lib/config/custom-routes.rb
+++ b/lib/config/custom-routes.rb
@@ -1,17 +1,13 @@
# Here you can override or add to the pages in the core website
-
-require 'dispatcher'
-Dispatcher.to_prepare do
- ActionController::Routing::Routes.draw do |map|
- # brand new controller example
- map.with_options :controller => 'general' do |general|
- general.mycontroller '/mycontroller', :action => 'mycontroller'
- end
-
- # Additional help page example
- map.with_options :controller => 'help' do |help|
- help.help_out '/help/help_out', :action => 'help_out'
- end
+ActionController::Routing::Routes.draw do |map|
+ # brand new controller example
+ map.with_options :controller => 'general' do |general|
+ general.mycontroller '/mycontroller', :action => 'mycontroller'
+ end
+
+ # Additional help page example
+ map.with_options :controller => 'help' do |help|
+ help.help_out '/help/help_out', :action => 'help_out'
end
end