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.
007bac1f27905cd4d5d88315e9b0093a?d=identicon&s=25 Guillaume Loader (loader)
on 2009-03-04 03: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!
Fdb488647484e40f785dde7134afc6d1?d=identicon&s=25 Heinz Strunk (cojones)
on 2009-03-04 13: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.