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

I got this error:

method_missing': undefined methodN_’ for User:Class (NoMethodError)

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: [email protected]


This problem has been fixed.

Replace your gettext/rails.rb to the rails.rb Revision 1.38 below.

Sorry for incovenient.

On Fri, 7 Jul 2006 12:28:47 -0400


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 :frowning: 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

Thanks again

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs