I am using link_to img tag like following
<%= link_to image_tag(\"Search.png\", :border=>0, :class => \'dock-item\'),
:action => \'search\', :co
The whole :action =>, :controller =>
bit that I've seen around a lot didn't work for me.
Spent hours digging and this method definitely worked for me in a loop.
<%=link_to( image_tag(participant.user.profile_pic.url(:small)), user_path(participant.user), :class=>"work") %>
Ruby on Rails using link_to with image_tag
Also, I'm using Rails 4.