aboutsummaryrefslogtreecommitdiffstats
path: root/lib/config/custom-routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/config/custom-routes.rb')
-rw-r--r--lib/config/custom-routes.rb19
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/config/custom-routes.rb b/lib/config/custom-routes.rb
index 2c1b9cc..b8afebd 100644
--- a/lib/config/custom-routes.rb
+++ b/lib/config/custom-routes.rb
@@ -1,8 +1,17 @@
# Here you can override or add to the pages in the core website
-ActionController::Routing::Routes.draw do |map|
- # Additional help page example
- map.with_options :controller => 'help' do |help|
- help.help_out '/help/help_out', :action => 'help_out'
- end
+
+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
+ end
end