[Rails] Re: Problem with activesupport version
On Dec 7, 1:52 pm, Srdan Dukic <srdan.du...@gmail.com> wrote:
> Hi,
>
> From the link that you sent, the fix seems to be to add the line:
>
> Gem.source_index.add_spec(Gem.loaded_specs[stub])
>
> To 'initializer.rb'. I've tried adding this line to
> '/var/lib/gems/1.8/gems/rails-2.3.4/lib/initializer.rb'.
>
That's not going to work for three reasons:
- the bug in 2.1.0 was bigger than that.
- the file you've modified is a Rails 2.3.4 file, not 2.1.0.
- that file isn't being loaded by your application.
> Adding it to the file gave the following error:
>
> $ rake gems:install --trace
[snip]
> /home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/initializer.rb:242:in `each'
> /home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/ini tializer.rb:242:in `add_gem_load_paths'
> /home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/ini tializer.rb:115:in `process'
> /home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/ini tializer.rb:93:in `send'
> /home/srdan/rails/authlogic_example/config/../vendor/rails/railties/lib/ini tializer.rb:93:in `run'
[snip]
Note the paths here - your app is loading Rails from /home/srdan/rails/
authlogic_example/vendor/rails, not from the system gems.
> Could you explain a bit more what you mean when you say that Rails is
> 'frozen'? Do you mean the version is frozen? If so, how can i unfreeze the
> version?
Here's a quick rundown on freezing Rails:
http://www.softiesonrails.com/2008/1/3/freezing-your-rails-application
I'm somewhat confused as to how you got into this situation; the
authlogic_example project on github has 2.2.0 (or higher) installed in
even the very oldest versions, and you've indicated that you're
unfamiliar with freezing Rails. You may want to grab a fresh copy of
the example project from github and start over.
--Matt Jones
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home