views:

166

answers:

5

I have a rails app with the config/environment.rb line

config.gem 'authlogic', :version => '2.1.2'

The system gem for authlogic is 2.1.4 The one in my GEM_PATH is 2.1.2

No matter what I try, Rails is only using the 2.1.4 version, which is a problem. How to force rails to use 2.1.2?

Thanks

A: 

i've made a test here, included the gem authlogic, choose to use the 2.1.3 version, and the application ran without problems.

then i've uninstalled the gem (gem uninstall authlogic -v=2.1.3), and my application didn't ran anymore, normal behavior (i'm using rails 2.3.8 for this test)

you could try uninstalling and then installing the gem again

vrsmn
A: 

To be safe, uninstall your 2.1.4 version, freeze 2.1.2, then uninstall 2.1.2 too.

porkeypop
A: 

Unpack the gems into your rails app. This'll also help in deployment.

rake gems:unpack
Nick
A: 

I recommend using Bundler

pjb3
A: 

Sys admin re-installed some gems and all the problems went away.. thanks mr. sys admin.

David Lazar