tags:

views:

49

answers:

2

Hey guys,

I`ve encountered the problem after updating some gems, so basically all older gems are still available but i cant force application use them.

Lets say, i need something like that:

require 'rubygems'
require 'mygem', '0.1.2'

Is there a way to do it?

A: 

Well, always happens to me. Found an answer.

require 'rubygems'
gem 'mygem', '=0.1.2'
Dan Sosedoff
You don't need to require rubygems. Rails already does that.
Damien MATHIEU
@Damien It's not necessarily a rails app.@Dan Do you not have to require the gem after setting the version?
Phil
well, i didnt say anything about rails. it is not even web application.
Dan Sosedoff
A: 
require 'rubygems'
require 'activerecord', '=1.15.3'

This worked for me.

Check this out. Seemed helpful
Link

Sid