Displaying 1 result from an estimated 1 matches for "validates_lenth_of".
Did you mean:
  validates_length_of
  
2006 May 09
5
How to use gettext in plugins?
I use rails-engine as a plugin of the application and I want to localize 
the validate message from the plugin:
validates_length_of :login, :within => 3..40, :on => :create, :message 
=> N_("%{fn} is too short (min is %d characters)")
It can not display the according language,where should i set it?
I have tried to add
require ''gettext/rails''