Rafa_F
February 28, 2016, 5:09am
1
On Sat, Feb 27, 2016 at 9:14 PM, fugee ohu [email protected] wrote:
I’m trying to build some links from this statement <% for task in
row_tasks %> where task.name and task.name.thumb 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?
This should work I would think, given what you say above:
<% for task in row_tasks do %>
<%= image_path(task.name.thumb)
%>
<% end %>
–
Tamara T.
[email protected]
http://www.tamouse.org
On Saturday, February 27, 2016 at 11:08:35 PM UTC-5, tamouse wrote:
helpers and basic html something like this … <a href =
–
Tamara T.
[email protected] <javascript:>
http://www.tamouse.org
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
On Saturday, February 27, 2016 at 11:08:35 PM UTC-5, tamouse wrote:
helpers and basic html something like this … <a href =
–
Tamara T.
[email protected] <javascript:>
http://www.tamouse.org
Hi again and thanks again Tam I got it working like this
<%= image_tag(task.name.thumb)
%>
On 28 February 2016 at 04:37, fugee ohu [email protected] wrote:
…
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
<%= link_to image_tag(task.name.thumb), task.name %>
Colin
On Sunday, February 28, 2016 at 4:41:28 AM UTC-5, Colin L. wrote:
<%= link_to image_tag(task.name.thumb), task.name %>
Colin
thank you
On Saturday, February 27, 2016 at 11:08:35 PM UTC-5, tamouse wrote:
helpers and basic html something like this … <a href =
–
Tamara T.
[email protected] <javascript:>
http://www.tamouse.org
thank you