bmunat-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jul-10 03:28 UTC
Preventing newer versions from hosing rails apps
I am starting a new rails app and want to use ActiveResource. This requires that I use edge rails, so I froze it to edge. However, after this, the environment would not load, throwing a NoMethodError for "options" on array. I did some searching and found someone suggesting updating gems when confronted with this error. I did so and the error went away. However, updating the gems also pulled in rails-1.2.3.7116 and this has broken my other apps. All of these other apps have the RAILS_GEM_VERSION constant set to 1.2.3 in environment.rb. It appears that the rails initializer thinks that 1.2.3.7116 is the same as 1.2.3... which is definitely not true. Any ideas much appreciated, Ben --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
bmunat-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jul-10 03:33 UTC
Re: Preventing newer versions from hosing rails apps
Whoops... for the subject of this I meant "Preventing new versions *of gems* from hosing rails apps. b On Jul 9, 5:28 pm, "bmu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <bmu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am starting a new rails app and want to use ActiveResource. This > requires that I use edge rails, so I froze it to edge. However, after > this, the environment would not load, throwing a NoMethodError for > "options" on array. > > I did some searching and found someone suggesting updating gems when > confronted with this error. I did so and the error went away. However, > updating the gems also pulled in rails-1.2.3.7116 and this has broken > my other apps. > > All of these other apps have the RAILS_GEM_VERSION constant set to > 1.2.3 in environment.rb. It appears that the rails initializer thinks > that 1.2.3.7116 is the same as 1.2.3... which is definitely not true. > > Any ideas much appreciated, > > Ben--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
bmunat-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jul-10 07:36 UTC
Re: Preventing newer versions from hosing rails apps
Figured this out... posting it for folks struggling with this down the line (though considering the solution, it must have been there in the archives somewhere... I even remember doing it a while back!). Just use RAILS_GEM_VERSION="1.2.3.0" instead of "1.2.3". The ".0" forces the initializer to ignore any later "beta" versions. b On Jul 9, 5:33 pm, "bmu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <bmu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Whoops... for the subject of this I meant "Preventing new versions *of > gems* from hosing rails apps. > > b > > On Jul 9, 5:28 pm, "bmu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <bmu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I am starting a new rails app and want to use ActiveResource. This > > requires that I use edge rails, so I froze it to edge. However, after > > this, the environment would not load, throwing a NoMethodError for > > "options" on array. > > > I did some searching and found someone suggesting updating gems when > > confronted with this error. I did so and the error went away. However, > > updating the gems also pulled in rails-1.2.3.7116 and this has broken > > my other apps. > > > All of these other apps have the RAILS_GEM_VERSION constant set to > > 1.2.3 in environment.rb. It appears that the rails initializer thinks > > that 1.2.3.7116 is the same as 1.2.3... which is definitely not true. > > > Any ideas much appreciated, > > > Ben--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---