By default, the Devise errors function for development 1.1.5 can be found in self-education:
invent-1.1.5 / application / helpers / devise_helper.rb
module DeviseHelper def devise_error_messages! return "" if resource.errors.empty? messages = resource.errors.full_messages.map { |msg| content_tag(:li, msg) }.join sentence = "#{pluralize(resource.errors.count, "error")} prohibited this #{resource_name} from being saved:" html = <<-HTML <div id="error_explanation"> <h2>#{sentence}</h2> <ul>#{messages}</ul> </div> HTML html.html_safe end end
I assume that you can rewrite this module / function if you want it to behave differently.
source share