aboutsummaryrefslogtreecommitdiffstats
path: root/lib/config/custom-routes.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-06-04 08:39:53 +0100
committerLouise Crow <louise.crow@gmail.com>2013-06-04 08:39:53 +0100
commit853701441060c56a0072d3523dd47fb2658cac18 (patch)
tree11c2b5304f8e10689caf6d27d14197cab1491c2a /lib/config/custom-routes.rb
parent852f088c104ae74210057578f2621afaa308d098 (diff)
parent945fb4b52727115575bbb3941b1151cd21a6a60e (diff)
Merge branch 'rails-3'use-with-alaveteli-0.12
Diffstat (limited to 'lib/config/custom-routes.rb')
-rw-r--r--lib/config/custom-routes.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/config/custom-routes.rb b/lib/config/custom-routes.rb
index 4184d10..5aeb7c2 100644
--- a/lib/config/custom-routes.rb
+++ b/lib/config/custom-routes.rb
@@ -1,13 +1,8 @@
# Here you can override or add to the pages in the core website
-ActionController::Routing::Routes.draw do |map|
+Rails.application.routes.draw do
# brand new controller example
- map.with_options :controller => 'general' do |general|
- general.mycontroller '/mycontroller', :action => 'mycontroller'
- end
-
+ match '/mycontroller' => 'general#mycontroller'
# Additional help page example
- map.with_options :controller => 'help' do |help|
- help.help_out '/help/help_out', :action => 'help_out'
- end
+ match '/help/help_out' => 'help#help_out'
end