Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Andrew Merrick
20,151 PointsLogIn Page for Treebook No Longer Works
After completing the "Creating the Friendship" video I now get the following error when I attempt to sign into my Treebook site:
treebook/app/views/devise/sessions/new.html.erb where line #4 raised:
undefined method `user_session_path' for #<ActionDispatch::Routing::RoutesProxy:0x00000100fdeea8>
4: <%= simple_form_for(resource, :as => resource_name, :url => session_path(resource_name), html: {class: "well"}) do |f| %>
I've checked the project files and mine match what's provided on the website, I've migrated my DB - I'm not sure where I'm supposed to look. I checked the routes.db as well and I can't find any errors.
Any suggestions? Every other part of the site works except for the login screen.
Andrew Merrick
20,151 PointsAndrew Merrick
20,151 PointsSOLVED
The problem WAS in the routes.db!
I had
post "/login" => 'devise/sessions#create', as: :new_user_session
when it should be
post "/login" => 'devise/sessions#create', as: :user_session
All is well in treebook land!