Browse files

Allow error_message_on to work when symbols are given to form_for (ht…

…: Vicki Ball)
  • Loading branch information...
1 parent a28361a commit f83e06d8336557da0a9b428b47ab716b2655c8cd @josevalim josevalim committed Apr 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/action_view/helpers/dynamic_form.rb
View
2 lib/action_view/helpers/dynamic_form.rb
@@ -278,7 +278,7 @@ def column_type
module FormBuilderMethods
def error_message_on(method, *args)
- @template.error_message_on(@object, method, *args)
+ @template.error_message_on(@object || @object_name, method, *args)
end
def error_messages(options = {})

0 comments on commit f83e06d

Please sign in to comment.