variables in views

This should work I would think, given what you say above:

<% for task in row_tasks do %>
<a href="<%= image_tag(task.name)%>"><%= image_path(task.name.thumb) %></a>
<% end %>

Hi Tam, Do I need the do ?

That doesn’t work and putting the <% %> markups into the value of href= I get a headache looking at it

Hi again and thanks again Tam I got it working like this

"><%= image_tag(task.name.thumb) %>

Unless I am missing something, this might be clearer
<td>
  <%= link_to image_tag(task.name.thumb), task.name %>
</td>

Colin

thank you

thank you