diff --git a/railties/guides/source/active_record_validations_callbacks.textile b/railties/guides/source/active_record_validations_callbacks.textile index 844876a973949e3dcf40198c688dba6ccd43e624..4b74fae94ec82e428551079b8c618257d192725e 100644 --- a/railties/guides/source/active_record_validations_callbacks.textile +++ b/railties/guides/source/active_record_validations_callbacks.textile @@ -901,13 +901,8 @@ Below is a simple example where we change the Rails behavior to always display t ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| - if instance.error_message.kind_of?(Array) - %(#{html_tag}  - #{instance.error_message.join(',')}).html_safe - else - %(#{html_tag}  - #{instance.error_message}).html_safe - end + errors = Array(instance.error_message).join(',') + %(#{html_tag} #{errors}).html_safe end