wordnik_ruby_helpers 0.0.6 → 0.0.7
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.
- data/lib/wordnik_ruby_helpers/version.rb +1 -1
- data/lib/wordnik_ruby_helpers.rb +2 -1
- metadata +3 -3
data/lib/wordnik_ruby_helpers.rb
CHANGED
@@ -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
|
-
-
|
9
|
-
version: 0.0.
|
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-
|
18
|
+
date: 2011-01-25 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|