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

Ruby Build a Simple Ruby on Rails Application Creating an Authentication System Generating the Devise Views

jarrod Reeves
jarrod Reeves
6,357 Points

How do I sign out and create a new account with devise ?

I am following along with what Jason is doing, by creating a new account but when I go to the users/sign_up page it says in the gold box that I am already signed in.

Thanks

2 Answers

You need a link to the sign out path in your layout somewhere.

<%= link_to "Sign Out", destroy_user_session_path, method: :delete %>

Clicking that will log the current user out so you can sign up new users.

I have the same problem and I add your link above to my view/statuses/index.html.erb

Please help