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.

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Generate a Rails Application

When running /bin/rails server, my terminal in Ubuntu 14.10 returns an error.

The following documents my command and the returned error:

joel@joel-U80A:~/workspace/odot$ /bin/rails server
bash: /bin/rails: No such file or directory

I have tried reinstalling both Ruby and Rails.. to no avail. Please help!

1 Answer

William Li
PLUS
William Li
Courses Plus Student 26,857 Points

I only had this problem once before, you can try

rake rails:update:bin

see if it fix your problem.

But, for all intents and purposes, if you only have one version of Rails installed on your system. There really is no difference between bin/rails or just rails. So if that's case, if you can't get /bin/rails server working, use rails server instead.

I was using rails server as well, and that wasn't working either. What I ended up doing was trying to rebuild the gems bundle. That worked and now I'm up and running.

Thanks William Li