variables in views

I’m trying to build some links from this statement <% for task in row_tasks %> where and are full path image file 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 … <%= image_tag("#{@thumb_path}") %> and i’ve tried the same with link_to image_tag How am i gonna do this?