I want to allow the path upload.img_path in my link. upload.img_path is
a path to an image.
<%= raw upload.img_path %>
correctly displays the image.
But, I can't figure out how to do this with a link.
<%= link_to raw(upload.img_path, upload) %> [/code] gives the error:
wrong number of arguments (2 for 1)
<%= link_to (upload.img_path, upload, :raw => true) %>[/code] For this,
link works but the image is escaped. The image path is displayed
instead of of the image.