Fixing the error_messages to the new rails3 format