Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CHANGE: spelling of css class error_explanation

  • Loading branch information...
commit 338142df5749c8c659a211471bfab4d3f71fabea 1 parent ebb0321
@ramn authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/action_view/helpers/dynamic_form.rb
View
6 lib/action_view/helpers/dynamic_form.rb
@@ -139,8 +139,8 @@ def error_message_on(object, method, *args)
# This <tt>DIV</tt> can be tailored by the following options:
#
# * <tt>:header_tag</tt> - Used for the header of the error div (default: "h2").
- # * <tt>:id</tt> - The id of the error div (default: "errorExplanation").
- # * <tt>:class</tt> - The class of the error div (default: "errorExplanation").
+ # * <tt>:id</tt> - The id of the error div (default: "error_explanation").
+ # * <tt>:class</tt> - The class of the error div (default: "error_explanation").
# * <tt>:object</tt> - The object (or array of objects) for which to display errors,
# if you need to escape the instance variable convention.
# * <tt>:object_name</tt> - The object name to use in the header, or any text that you prefer.
@@ -207,7 +207,7 @@ def error_messages_for(*params)
value = options[key]
html[key] = value unless value.blank?
else
- html[key] = 'errorExplanation'
+ html[key] = 'error_explanation'
end
end
options[:object_name] ||= params.first
Please sign in to comment.
Something went wrong with that request. Please try again.