Link_to in Ruby

How can I make this:

<%= image_tag actor.image_url %>

a link without using and ahref, I want to use the link_to

Thanks in advance!

I am not sure what you’re asking. You want the image to be a link without an href?

Yes, is that possible?

I want to use a link_to?


content_tag("a", "my link")

which gives you:

<a>my link</a>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.