Created
June 20, 2013 17:18
-
-
Save mwlang/5824684 to your computer and use it in GitHub Desktop.
passing the new path from router during redirect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scope(:controller => 'site/about') do |about| | |
get 'about/community', :controller => 'site', :action => 'redirect', :path => '/community', as: :site_about_community | |
get 'about/offices', :controller => 'site', :action => 'redirect', :path => '/offices', as: :site_about_offices | |
get 'about/office/:id', :controller => 'site', :action => 'redirect', :path => '/offices', as: :site_about_office_detail | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment