error_messages_for
めも。
# error_messages_for 'user' # # To specify more than one object, you simply list them; optionally, you can add an extra +object_name+ parameter, which # will be the name used in the header message. # # error_messages_for 'user_common', 'user', :object_name => 'user' # # If the objects cannot be located as instance variables, you can add an extra +object+ paremeter which gives the actual # object (or array of objects to use) # # error_messages_for 'user', :object => @question.user