Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Derek Saunders5,167 Points
Edit User Controller
I want to make the authenticated route go to the devise/registrations#new when I put this
authenticated :user do
root to: "devise/registrations#edit", as: :authenticated_root
It says uninitialized constant RegistrationsController
what can I do so that it shows the edit user page once logged in?
Okay, then this is what you want to do. Add this to your application controller:
This will redirect users to their edit user page once they log in/sign up (source). Also, when tinkering with Devise, it really has a well documented wiki which you can find here: https://github.com/plataformatec/devise/wiki
Most of the stuff you'll want to do will probably be there somewhere.