You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How To: Redirect to a specific page on successful sign in
natronic edited this page May 9, 2020
·
15 revisions
config/routes.rb
namespace:userdoroot:to=>"welcome#index"end
This does not work with Rails 3.0.7 in production mode. Use this instead:
match'/user'=>"welcome#index",:as=>:user_root
For Rails 6, use:
get'/user'=>"welcome#index",:as=>:user_root
If you are using a gem that reads to URI for certain processing (like simple-navigation) the new URI will be '/users' even though you are at the '/welcome' URI (highlight is lost in simple-navigation and submenus are not rendered).