Skip to content
This repository was archived by the owner on May 8, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
===========

Expand Down
2 changes: 1 addition & 1 deletion lib/action_view/helpers/dynamic_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down