Install rails locally for a user from command line

Login to the server via SSH as user, then enter the command :
# gem install rails -v=2.3.5

With -v option you can specify the rails version you want to install, here in this example it is 2.3.5.
Then check the gem list locally,

# gem list –local | grep -i rails

That will show the rails version they installed.

You can also install other Ruby gems like rack, rake, etc. using the same method.

About Sarath

A Techie from Kochi, India with 8+ years of experience in Linux and Windows server administration. I learn new things almost everyday and I enjoy the fun of learning and sharing my knowledge.