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

can't connect to localhost3000?!?

Add ~/.rbenv/bin to your $PATH for access to the rbenv command-line utility.

$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile Ubuntu Desktop note: Modify your ~/.bashrc instead of ~/.bash_profile.

Zsh note: Modify your ~/.zshrc file instead of ~/.bash_profile.

none of these seem to work for my computer. It keeps telling me permission denied and yes I did try the sudo command first. Not sure why I have to even use the sudo command in the first place since it is my comp.

Also I am not sure if this step is the reason why i cannot connect to the localhost3000 because i also get error messages when trying bin/rails server command

I had purchased this computer from someone so maybe that could be the reason i still have to use sudo commands and its denying permissions...?? Any input would be great thanks.

Please start from the beginning. What is your operating system? What steps did you take before trying to start the server?

Mac OS X and i followed the steps in Jason Seifer's video "Installing Ruby on Mac"

So do you have Ruby and Rails installed? If so, did you try running rails server without any bin/ in front (also make sure you are in the project folder when you run this)? Try this and paste the output you get here. Don't follow Ruby/Rails installation guides here, they are old. Follow some other installation guides like this one, depending on tour version of Mac OS: https://gorails.com/setup/osx/10.10-yosemite

1 Answer

This may be a stupid response, but twice you posted "localhost3000 ". In your browser are you adding the colon between localhost and 3000?

localhost:3000