Variables in views

I’m trying to build some links from this statement <% for task in
row_tasks %> where and are full path image
names and not having any luck
I’ve been trying to link to the image from the thumb I’ve tried with
helpers and basic html something like this … <a href =

<%= image_tag("#{@thumb_path}") %> and i’ve tried the same with
link_to image_tag How am i gonna do this?