Rails command is not found


Whenever I try to run my rails server by using rails s -b $IP -p $PORT, I get the error bash: rails: command not found.

I’ve read the answers to similar problems but I still can’t fix it…

Thanks a lot!


Are you running a ruby on rails or rails tutorial workspace? It sounds like rails is not installed but it should be pre-installed on these workspace types.


I believe I am. Until yesterday morning, I was able to run rails just fine.

Might I have uninstalled rails by mistake?