diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-04-30 12:14:26 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-04-30 12:14:26 +0100 |
commit | 945fb4b52727115575bbb3941b1151cd21a6a60e (patch) | |
tree | 11c2b5304f8e10689caf6d27d14197cab1491c2a /lib/config | |
parent | e90c170f84ab4b91b25c673045bc0bbec0c5788a (diff) | |
parent | ec01e0946dfab8db11e63ad565d18958a8fec1a6 (diff) |
Merge remote-tracking branch 'mysociety_github/rails-3' into rails-3use-with-alaveteli-0.11rails-3
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/custom-routes.rb | 11 |
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 |