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

Chase Lee
29,275 PointsRails can't seem to find my routes.
Hi everyone!
I just added devise to my rails app and then refreshed the page. Then it gave me this error.
Everything works except for the /users
section.
This is what's in my routes file:
Stoabook::Application.routes.draw do
devise_for :users
resources :statuses
root 'statuses#index'
end
Does anybody have any idea of what's going on?
Thank you so much!
-Chase
3 Answers

Chase Lee
29,275 PointsI figured it out. It was that devise doesn't generate /users
. Thank you for your time!

Chris Dziewa
17,781 PointsI'm definitely not experienced enough (yet) in Rails to tackle this on my own but I found a similar issue where every route says that error on stack overflow. The solution to their problem was restarting the server since Devise affects routing in Rails. Hopefully that helps a little at least. This is the SO page

Chase Lee
29,275 PointsUnfortunately I still get the error after restarting the server.
Chris Dziewa
17,781 PointsChris Dziewa
17,781 PointsThat is good to know! Glad you got it working!