Ruby on Rails
Saturday, February 27, 2016
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 ... <a href = "#{@image_path}" ><%= image_tag("#{@thumb_path}") %></a> and i've tried the same with link_to image_tag How am i gonna do this?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d30e8dc3-1052-4401-a370-9a796ad61a33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment