Edgar Gonzalez
2006-Jul-07 16:28 UTC
[Rails] Problem with GetText 1.6.0 - undefined method ''N_''
I''m just upgraded GetText from 1.4.0 to 1.6.0, and all my tests got broken. I got this error: ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1129:in `method_missing'': undefined method `N_'' for User:Class (NoMethodError) etc My model user.rb has this line: validates_format_of :login, :with => /^[a-zA-Z0-9_]+$/, :message => N_("%{fn} invalid, only letters, numbers and underscore are allowed.") Any clue? -- Edgar Gonz?lez Gonz?lez E-mail: edgargonzalez@gmail.com http://vp.com.ve http://lacaraoscura.com http://rubycorner.com --
Masao Mutoh
2006-Jul-07 16:35 UTC
[Rails] Problem with GetText 1.6.0 - undefined method ''N_''
Hi, This problem has been fixed. Replace your gettext/rails.rb to the rails.rb Revision 1.38 below. http://rubyforge.org/cgi-bin/viewvc.cgi/gettext/lib/gettext/rails.rb?root=gettext&view=log Sorry for incovenient. On Fri, 7 Jul 2006 12:28:47 -0400 "Edgar Gonzalez" <edgargonzalez@gmail.com> wrote:> I''m just upgraded GetText from 1.4.0 to 1.6.0, and all my tests got broken. > > I got this error: > > ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1129:in > `method_missing'': undefined method `N_'' for User:Class (NoMethodError) > etc > > My model user.rb has this line: > > validates_format_of :login, :with => /^[a-zA-Z0-9_]+$/, :message => > N_("%{fn} invalid, only letters, numbers and underscore are allowed.") > > Any clue? > -- > Edgar Gonz$(D+!(Blez Gonz$(D+!(Blez > E-mail: edgargonzalez@gmail.com > http://vp.com.ve > http://lacaraoscura.com > http://rubycorner.com > -- > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -- .:% Masao Mutoh<mutoh@highway.ne.jp>
Edgar Gonzalez
2006-Jul-07 17:20 UTC
[Rails] Problem with GetText 1.6.0 - undefined method ''N_''
Masao, Thanks for answer. When I change the file all the tests works fine. Do you have plans to make a new release soon ? I want to deploy a new version of my application very soon. My deploy is in a shared hosting :-( what do you recommend? stay in GetText v1.4.0?, 1.5.0? go to the 1.6.0 and ask to apply the patch? or wait to 1.7.0? Thanks again On 7/7/06, Masao Mutoh <mutoh@highway.ne.jp> wrote:> Hi, > > This problem has been fixed. > > Replace your gettext/rails.rb to the rails.rb Revision 1.38 below. > http://rubyforge.org/cgi-bin/viewvc.cgi/gettext/lib/gettext/rails.rb?root=gettext&view=log > > Sorry for incovenient. > > On Fri, 7 Jul 2006 12:28:47 -0400 > "Edgar Gonzalez" <edgargonzalez@gmail.com> wrote: > > > I''m just upgraded GetText from 1.4.0 to 1.6.0, and all my tests got broken. > > > > I got this error: > > > > ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.3/lib/active_record/base.rb:1129:in > > `method_missing'': undefined method `N_'' for User:Class (NoMethodError) > > etc > > > > My model user.rb has this line: > > > > validates_format_of :login, :with => /^[a-zA-Z0-9_]+$/, :message => > > N_("%{fn} invalid, only letters, numbers and underscore are allowed.") > > > > Any clue? > > -- > > Edgar Gonz?D+!lez Gonz?D+!lez > > E-mail: edgargonzalez@gmail.com > > http://vp.com.ve > > http://lacaraoscura.com > > http://rubycorner.com > > -- > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > -- > .:% Masao Mutoh<mutoh@highway.ne.jp> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Edgar Gonz?lez Gonz?lez E-mail: edgargonzalez@gmail.com http://vp.com.ve http://lacaraoscura.com http://rubycorner.com --