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:
parent
30832b3460
commit
2890be2f53
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue