2009/12/9 Matt Jones <[email protected]>

>
>
> On Dec 7, 1:52 pm, Srdan Dukic <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>
Hi,

The reason I was modifying the file that I was, is because under Ubuntu the
'authlogic_example/vendor/...' folders are actuall symbolic links. i.e.

$ ls -al rails/authlogic_example/vendor/
total 8
drwxr-xr-x  2 srdan srdan 4096 2009-12-02 08:20 .
drwxr-xr-x 13 srdan srdan 4096 2009-12-08 07:40 ..
lrwxrwxrwx  1 srdan srdan   29 2009-12-02 08:20 actionmailer ->
/usr/share/rails/actionmailer
lrwxrwxrwx  1 srdan srdan   27 2009-12-02 08:20 actionpack ->
/usr/share/rails/actionpack
lrwxrwxrwx  1 srdan srdan   28 2009-12-02 08:20 activemodel ->
/usr/share/rails/activemodel
lrwxrwxrwx  1 srdan srdan   29 2009-12-02 08:20 activerecord ->
/usr/share/rails/activerecord
lrwxrwxrwx  1 srdan srdan   31 2009-12-02 08:20 activeresource ->
/usr/share/rails/activeresource
lrwxrwxrwx  1 srdan srdan   30 2009-12-02 08:20 activesupport ->
/usr/share/rails/activesupport
lrwxrwxrwx  1 srdan srdan   16 2009-12-02 08:20 rails -> /usr/share/rails
lrwxrwxrwx  1 srdan srdan   25 2009-12-02 08:20 railties ->
/usr/share/rails/railties

I'm going to take your advice and download the project and start again.

Thank you

-- 
Srđan Đukić

--

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