Reputation: 9604
I am trying to generate a migration file using
rails generate migration RemovePartNumberFromProducts part_number:string
(as given in the example) and I am getting
-bash: /usr/local/bin/rails: /usr/local/bin/ruby: bad interpreter: No such file or directory
I am using the latest version of Ubuntu. Any ideas?
Upvotes: 0
Views: 234
Reputation: 107718
It looks to be a problem with how you set up Ruby. I'd recommend using RVM for this on all *NIX systems and I've written a guide on exactly how to do that. I hope it helps you.
Upvotes: 0
Reputation: 14222
Sounds like your ruby is not in /usr/local/bin. If you are using Ubuntu's ruby it is in /usr/bin.
Upvotes: 1