aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 9bfc3041af..3b4e05bc1d 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -628,11 +628,11 @@ module ActionView
end
def error_message_on(method, prepend_text = "", append_text = "", css_class = "formError")
- @template.error_message_on(@object_name, method, prepend_text, append_text, css_class)
+ @template.error_message_on(@object, method, prepend_text, append_text, css_class)
end
def error_messages(options = {})
- @template.error_messages_for(@object_name, options)
+ @template.error_messages_for(@object_name, options.merge(:object => @object))
end
def submit(value = "Save changes", options = {})