Forum: Ruby on Rails Img & link inline?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Guillaume L. (Guest)
on 2009-03-04 04:28
Hello everyone!

I Have a small image (icone) followed by an icone. Here is my code :
<%= image_tag "/error.png" if (...) -%><%= link_to,
post_path(post) %>

My question is : how can I have this two things inline ?

Thank you!
Heinz S. (Guest)
on 2009-03-04 14:33
I don't know if I got your question right but I think you want something
<%= link_to(image_tag("error.png" , :size => "50x22" ), :url =>
post_path(post) )
This topic is locked and can not be replied to.