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

Little trouble with Devise

I'm on "Generating the User Model" in the Ruby on Rails series,

Programming > Build a Simple Ruby on Rails Application > Creating an Authentication System > Generating the User Model @ 5:35

and I'm trying to navigate to /users/sign_up,

but I get this error:

Routing Error
No route matches [GET] "/statuses/users/sign_up"

I followed the set up exactly, and everything has been good up until this final step, I went back and checked all the set up files to make sure I saved everything etc..hrmff

Okay, I figured it out. On Windows..not sure about Mac, you can't access it if you're using 127.0.0.0:3000/users/sign_up..

you have to use localhost:3000/users/sign_up

Hope this helps anyone else who enjoys this error

Cheers!

Hi Michael,

I didn't come across this error on Windows. Which rails server are you running?

I'm running Rails 3.2 and all seems fine on 127.0.0.1:3000 and localhost:3000. If you are interested in finding out what is causing that behaviour, I'd suggest the following 1) Run your rails server with a binding to 0.0.0.0 . e.g. rails server -b 0.0.0.0 -p 3000 This should force it to be accessible locally only.

2) You may have something in your Windows HOST file that is conflicting when resolving the "localhost" name.

Just some suggestions I'm throwing out there. Let us know if you find out what is preventing you from using localhost.

Regards, Steven

1 Answer

Okay, I figured it out. On Windows..not sure about Mac, you can't access it if you're using 127.0.0.0:3000/users/sign_up..


I think you just had a typo in your URL: 127.0.0.1 is the localhost IP Address.