diff options
author | Mark Longair <mhl@pobox.com> | 2013-04-09 17:14:35 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-04-09 17:14:35 +0100 |
commit | 33077ea01dc1317c4fce118889e9e8fdcaacb4b1 (patch) | |
tree | be60ff929cddbd10ac4565e0d0acfa2cf4200f14 /lib | |
parent | b67d819d3cedc999bd03e6b07eaf0a084745b3e1 (diff) |
Update the routing for Rails 3
Diffstat (limited to 'lib')
-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 |