How to implement icons instead of links in Ruby? -


i have primitive delete link in front of objects in database. looks pretty plain , simple. want find way implement deleting via trash bin icon in example. enter image description here

what need? in advance.

try this:

link_to (image_tag('delete.png')), 'javascript:void(0)' 

this show delete icon instead of link text.

if not handling delete js javascript:void(0) can replaced rails_path


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -