Maybe you don't have rails gem installed in your gemset.
Try out gem install rails, after using the specific gemset.
문제
I have rails installed on a machine (Ubuntu 12.04) and have used for a couple of Rails projects. I have access to the rails
command in my home folder and any other folder I create on my machine. I created a new directory for a project. I also created a .rvmrc file with the following content:
rvm --create ruby-2.0.0-p0@gemset
After I created the .rvmrc file I ran the following commands:
rvm install ruby-2.0.0-p0
rvm use ruby-2.0.0-p0
rvm gemset create project.me
rvm gemset use project.me
Everything looks good up to the point. When I try to create the rails project with:
rails new .
I get the following error:
The program 'rails' is currently not installed. You can install it by typing:
sudo apt-get install rails
What do I not understand? I know that I can create a new project with
rails new project.me
And everything will work fine, but why is this not working? Thanks for the help guys!
해결책
Maybe you don't have rails gem installed in your gemset.
Try out gem install rails, after using the specific gemset.