Reputation: 635
How do I specify for what version of ruby I would like to install a gem in?
Upvotes: 1
Views: 426
Reputation: 29155
You need to use RVM, that way you can manage what gems are installed for what ruby/rails.
Upvotes: 0
Reputation: 8807
Are you not using RVM?
$> rvm use 1.9.2
$> gem install <gem name>
The gem will be installed only for Ruby 1.9.2
Upvotes: 0
Reputation: 21574
Are you using RVM? If so, just go to you ruby:
rvm 1.9.2-head
then do
gem install whatever
Upvotes: 4