Rails command not found


#1

I can’t get c9 to find rails at all. What’s weird is I just got done checking the rails, ruby, git versions. See below.

ddonche:~/workspace rails -v Rails 4.2.4 ddonche:~/workspace ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]

ddonche:~/workspace rvm use ruby-2.1.5 Using /usr/local/rvm/gems/ruby-2.1.5 ddonche:~/workspace git version
git version 1.9.1

ddonche:~/workspace pwd /home/ubuntu/workspace ddonche:~/workspace cd …
ddonche:~ ls lib/ workspace/ ddonche:~ clear
ddonche:~ rails new blog bash: rails: command not found ddonche:~ pwd
/home/ubuntu
ddonche:~ rails new blog bash: rails: command not found ddonche:~ rails new blog
bash: rails: command not found
ddonche:~ rails -v bash: rails: command not found ddonche:~ cd …
ddonche:/home rails -v bash: rails: command not found ddonche:/home cd ubuntu/workspace
ddonche:~/workspace rails -v bash: rails: command not found ddonche:~/workspace ruby -v
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
ddonche:~/workspace rails -v bash: rails: command not found ddonche:~/workspace


#2

This is odd, let me investigate a little.


#3

It appears all is good now. Could you confirm what you did so we can be sure this doesn’t happen to other devs?


#4

Apologies for not getting back on this. I ended up just deleting the workspace and redoing it, since it was a new rails app. It worked after that.