bash: :command not found Cloud9 Enviroment

3.2k views Asked by At

This is my first Ruby development, I'm following through a book thats teaching me to build a Pinterest clone. Everything was working correctly until I logged into the environment today to pick up where I left off. When I try and run the project, or boot up the server, I'm getting this error.

bash: :command not found

It was working correctly last night when I closed the environment, and I havn't been able to find any information online as to how to fix the problem. Any suggestions would be great. Thanks. Let me know if you need additional code supplied.

2

There are 2 answers

2
Brady Dowling On

Be sure your runner is set to Ruby on Rails and not Shell.

0
Long Do Thanh On

If you installed Rails only via Bundler, then rails will only be accessible if you run bundle exec rails.

A "naked" rails command will only exist if you gem install rails directly without Bundler.