Display image in Link_to


/ Published in: Ruby
Save to your folder(s)

Displays a image inside link_to instead of text.


Copy this code and paste it in your HTML
  1. <%= link_to image_tag("search.gif", :border=>0), :action => 'show', :id => user %>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.