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!
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
how do i sign_out so i can go to users/sign_in
i doing the treebook, and already install the devise gem.. from this point the aplication say that i am already signed in, so i cant view the (users/sign_up) page. How do i sign out.
David Rhinehart2,268 Points
just add <%= link_to 'sign out', destroy_user_session_path, :method=>'delete' unless user_signed_in? %> somewhere in your layout, then you'll have a link to sign out
Chris Dziewa17,781 Points
I am guessing that you haven't gotten to the part where you add the logout features. What you can do right now is go to
localhost:3000/users/1/edit and then delete the user. You may have to change the 1 if you have more than one user. Then you can re-signup.