Ruby on Rails Thursday, January 19, 2017

The authenticated user root path works perfectly. What I'm trying to do is stop the user from returning back to the root 'welcome#index' after login?

authenticated :user do
root 'hub#index', as: :authenticated_root
end

# How can I stop users from going back to root 'welcome#index' after they've logged in.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a0d71b8c-4ee9-45a3-94c2-e1cb1d49b20d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment