New Rails 5 app not created

rails
workspace

#1

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?

Thanks


#2

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

sudo gem install rails

#3

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


#4

cheers, this has been sorted


#5

thanks, all good now