[Rails] Problem with GetText 1.6.0 - undefined method 'N_'
Edgar Gonzalez
edgargonzalez at gmail.com
Fri Jul 7 16:28:47 GMT 2006
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 at gmail.com
http://vp.com.ve
http://lacaraoscura.com
http://rubycorner.com
--
More information about the Rails
mailing list