On Nov 10, 11:35 am, CuriousNewbie <bhellm...@gmail.com> wrote: > Hello, > > I have the following: > > validates :fname, :presence => true, :length => { :minimum => > 2 } > > How do I add a message to that? Right now the errors says "Fname is > too short (minimum is 2 characters)" I'd like it to say First Name and > not Fname.
You can simply change the name of the field in your locale file: en: activerecord: attributes: user: fname: First name Check out the Rails Internationalization Guide for more info: http://guides.rubyonrails.org/i18n.html -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.