Hi Fred,

I did read about this solution elsewhere before starting this thread.
So i did

gem 'activesupport', '=2.1.0'
require 'activesupport'
require File.join(File.dirname(__FILE__), "/../../config/environment")

But then I got the errors

<LoadError: no such file to load -- active_support>
<Errno::ENOENT: No such file or directory - /Users/fire/Sites/Vinay/
ROR/RealApps/fi_rest_auth/log/recurring.rb.pid>
<NameError: uninitialized constant Repeat> #Repeat being one of the
models of my app.

Im trying to uninstall activesupport 2.2.2 from my machine but not
getting anywhere with that either. Even if I DO manage that in my
local machine, in production, the daemon is still gonna trouble me by
loading the latest gem versions rt?




On May 11, 1:31 pm, Frederick Cheung <[email protected]>
wrote:
> On May 11, 9:00 am, Ram <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I have a couple of daemons that im trying to setup to be run for my
> > app. The environment load is as follows..
>
> > ENV["RAILS_ENV"] ||= "development"
> > require File.join(File.dirname(__FILE__), "/../../config/environment")
>
> > And the error I get is
>
> > #<LoadError: no such file to load -- active_support>
> > #<Gem::Exception: can't activate activesupport (= 2.1.0, runtime),
> > already activated activesupport-2.2.2>
>
> > I have activesupport 2.2.2, 2.1.0 and 1.4.4 installed and I think it
> > just loads the latest version available.
> > How do I force the daemon to load 2.1.0? I understand that in
> > production too, it loads the latest version of rails and all other
> > gems available. But I need it to use the versions I specify.
>
> > Any ideas at all on how to do this?
>
> you can use gem 'some_gem', '=1.2.3' to force version 1.2.3 of the gem
> some_gem to be loaded, or you can make sure that whatever is loading
> activesupport without specifying a version tries to do so after the
> thing that loads a specific version.
>
> Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to