New Rails 5 app not created



Trying to create new rails app in terminal, getting a bash: rails: command not found error. I used rails new saasapp

Any ideas why i get that error?



Make sure Rails is installed. If it’s not, install it with:

sudo gem install rails


I suggest do not use sudo to install gems
If you have already installed rails gem and still cant get it working try:
/bin/bash --login
rails new saasapp

If still does not work check wich user you have installed rails gem


cheers, this has been sorted


thanks, all good now