Copy link
@esb

esb Aug 12, 2016

This updated code breaks with attribute values that are symbols. The old code used "#{v}" which implicitly converted symbol values to string. This conversion has now been removed, and an error "undefined method `gsub' for value:Symbol" is now thrown.

Fix is to change the above line to -

value = escape ? ERB::Util.html_escape(value) : value.to_s