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
William Li
Courses Plus Student 26,855 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