-2

I am a noob in rails. I tried to install ruby and rails using RVM. Ruby was installed. But when I try to install rails using gem install rails --version 4.0.0, I get the following message:

Successfully installed rails-4.0.0
Parsing documentation for rails-4.0.0
Done installing documentation for rails after 1 seconds


After that

rails -v
The program 'rails' is currently not installed.  You can install it by typing:
sudo apt-get install rails

I have no idea what's going on.

curious_coder
  • 2,392
  • 4
  • 25
  • 44

3 Answers3

0

The current version of Rails is 4.0.0. You don't have to specify anything while installing. Just use:

gem install rails

Also, which version of ruby do you currently have install? The recommended version for rails 4 is Ruby 2.0.0. Can you run gem list and see if you can find Rails in the output?

Possible duplicate: Rails keeps telling me that it's not currently installed

Community
  • 1
  • 1
Hassan Javeed
  • 464
  • 4
  • 14
0

You can get full installation instructions for Rails from here

Also use Ruby 2.0.0 for rails 4

Debadatt
  • 5,935
  • 4
  • 27
  • 40
0

you need to use ruby first:

rvm use ruby --install
gem install rails -v 4.0.0 

also make sure to read the outputs of rvm - it will give you notes and warnings when something is wrong

mpapis
  • 52,729
  • 14
  • 121
  • 158