Fixes #9. Make sure that the link_to_add_association also works in rails 3.0.8. by making sure the template-html is not double escaped.

This commit is contained in:
nathanvda 2011-06-18 01:32:38 +02:00
parent 30832b3460
commit 2890be2f53
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ module Cocoon
html_options[:'data-associations'] = association.to_s.pluralize
new_object = f.object.class.reflect_on_association(association).klass.new
html_options[:'data-template'] = CGI.escapeHTML(render_association(association, f, new_object))
html_options[:'data-template'] = CGI.escapeHTML(render_association(association, f, new_object)).html_safe
link_to(name, '#', html_options )
end