diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..396583b Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md index e077c32..a99d647 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +Changes in this fork +==================== +Added .html_safe on line 226 in dynamic_form.rb. This allows html to be added to model error messages and to display properly. + DynamicForm =========== diff --git a/lib/action_view/helpers/dynamic_form.rb b/lib/action_view/helpers/dynamic_form.rb index f127ff9..48879f2 100644 --- a/lib/action_view/helpers/dynamic_form.rb +++ b/lib/action_view/helpers/dynamic_form.rb @@ -223,7 +223,7 @@ def error_messages_for(*params) error_messages = objects.sum do |object| object.errors.full_messages.map do |msg| - content_tag(:li, msg) + content_tag(:li, msg.html_safe) end end.join.html_safe