Re: [Rails] variables in views

2016-02-28 Thread fugee ohu
On Sunday, February 28, 2016 at 4:41:28 AM UTC-5, Colin Law wrote: > > On 28 February 2016 at 04:37, fugee ohu > > 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 cleare

Re: [Rails] variables in views

2016-02-28 Thread fugee ohu
On Saturday, February 27, 2016 at 11:08:35 PM UTC-5, tamouse wrote: > > > On Sat, Feb 27, 2016 at 9:14 PM, fugee ohu > 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

Re: [Rails] variables in views

2016-02-28 Thread Colin Law
On 28 February 2016 at 04:37, fugee ohu 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 -- You received this message

Re: [Rails] variables in views

2016-02-27 Thread fugee ohu
On Saturday, February 27, 2016 at 11:08:35 PM UTC-5, tamouse wrote: > > > On Sat, Feb 27, 2016 at 9:14 PM, fugee ohu > 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

Re: [Rails] variables in views

2016-02-27 Thread fugee ohu
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: > > > On Sat, Feb 27, 2016 at 9:14 PM, fugee ohu > wrote: > > > I'm trying to build some links from this statement <% for

Re: [Rails] variables in views

2016-02-27 Thread fugee ohu
On Saturday, February 27, 2016 at 11:08:35 PM UTC-5, tamouse wrote: > > > On Sat, Feb 27, 2016 at 9:14 PM, fugee ohu > 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

Re: [Rails] variables in views

2016-02-27 Thread Tamara Temple
On Sat, Feb 27, 2016 at 9:14 PM, fugee ohu 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

[Rails] variables in views

2016-02-27 Thread fugee ohu
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 ... <%= im