Parameter renderers
Dan Morphis
dan at milkcarton.com
Fri Mar 17 12:13:53 EDT 2017
In the prior version of the Genie GUI, I was able to have a parameter
renderer that returned an html snippet. In the v1.1 gui, that HTML is being
escaped. I'm going to presume its related to the version of rails.
I tried adding .html_safe to the returned value of the renderer, but the
snippet is still escaped.
I tried changing <%= value %> to <%= value&.html_safe %> with no luck.
Any thoughts?
def serial_number_link(val)
"<a href=\"http://my_site/Search?serialNumber=#{val}\">#{val}</a>".
html_safe
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20170317/a3b233e7/attachment.html>
More information about the Users
mailing list