error_messages_for question

a question about error_messages_for:

when i retrieve the error messages the error_messages_for display a list
errors with the name of input followed the customizable string error.

But if i want to change the name of input on the error message how can i
imagine for example i need to translate the errors messages in various

You just need to use rails' built-in i18n feature.

Drop a en.yml in config/locales with content like this:

            user: "User"
                login: "user name"
                blank: 'should not be blank'