better_form 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,9 +51,7 @@ module BetterForm
51
51
  end
52
52
 
53
53
  def generate_error(field_name)
54
- error_messages = []
55
- @object.errors[field_name].each { |error| error_messages << "#{field_name.to_s.humanize} #{error}" }
56
- content_tag(:span, error_messages.join(', and '), :class => :error_message)
54
+ content_tag(:span, @object.errors[field_name].join(tag(:br)).html_safe, :class => :error_message)
57
55
  end
58
56
 
59
57
  def generate_validations(object, attribute)
@@ -1,3 +1,3 @@
1
1
  module BetterForm
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: better_form
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.0
5
+ version: 0.5.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nicholas Firth-McCoy