wordnik_ruby_helpers 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module WordnikRubyHelpers
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -104,9 +104,10 @@ module WordnikRubyHelpers
104
104
  # Rails 3 did away with 'error_messages', so here's a custom redo..
105
105
  def errors_for(form)
106
106
  return unless form.object.errors.present?
107
+ out = []
107
108
  out << content_tag(:h2, "#{pluralize(form.object.errors.count, "error")} prohibited this record from being saved.")
108
109
  out << content_tag(:ul, convert_to_list_items(form.object.errors.full_messages))
109
- content_tag(:div, out.join("\n"), :class => "errorExplanation")
110
+ content_tag(:div, out.join("\n").html_safe, :class => "errorExplanation")
110
111
  end
111
112
 
112
113
  # Return a default message if value is blank
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Zeke Sikelianos
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-19 00:00:00 -08:00
18
+ date: 2011-01-25 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency