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
Michael Herleman
5,192 PointsQuestion on using Devise, RoR
I go to, localhost:3000/users/sign_up then get this error,
Routing Error
No route matches [GET] "/user/sign_up" Try running rake routes for more information on available routes.
I don't recall where & when we created this pathway, how do I find it in my code of text editor? is this path created by Devise, or did I miss a step?
4 Answers
Chad Shores
Courses Plus Student 8,868 Pointshave you run
rake routes
in the command line in your Rails project folder?
Michael Herleman
5,192 PointsThank you for reading and writing to me.
Yes I ran rake routes but it returned no results. Which I thought was weird...
That's what led me to the other questions. I followed along. I thought pretty well and this is my first hiccup.
I should mention that in my code and the lesson we are told to copy and paste 0.0.0.0 3000 by John, not the localhost:3000 that Jason points his browser to, later when he introduces Devise and authentication...
What do you think?
Michael Herleman
5,192 PointsI ran back to my machine, Control C'ed the server and ran, rake routes. This is what it returned,
statuses GET /statuses(.:format) statuses#index POST /statuses(.:format) statuses#create new_status GET /statuses/new(.:format) statuses#new edit_status GET /statuses/:id/edit(.:format) statuses#edit status GET /statuses/:id(.:format) statuses#show PUT /statuses/:id(.:format) statuses#update DELETE /statuses/:id(.:format) statuses#destroy root / statuses#index
IMO, it doesn't look like it created the /users/sign_up
Michael Herleman
5,192 PointsI ran back to my machine, Control C'ed the server and ran, rake routes. This is what it returned,
statuses GET /statuses(.:format) statuses#index POST /statuses(.:format) statuses#create new_status GET /statuses/new(.:format) statuses#new edit_status GET /statuses/:id/edit(.:format) statuses#edit status GET /statuses/:id(.:format) statuses#show PUT /statuses/:id(.:format) statuses#update DELETE /statuses/:id(.:format) statuses#destroy root / statuses#index
IMO, it doesn't look like it created the /users/sign_up