i would like to translate the error messages in my models like this:
class Person < ActiveRecord::Base
validates_presence_of :name, :message => _(‘Please insert a name’)
but i get
undefined method `_’ for Person:Class
why? can i change this behaviour?
btw, it would also be nice if there was a
ActiveRecord::Errors.full_messages() without the
@base.class.human_attribute_name(attr), so i would be able to translate
the whole message.