sorry for the basic question, trying to do this…
<%= link_to (image_tag picture.photo.url(:thumb)), (image_tag
picture.photo.url) %>
Anyone help me fix the syntax?
bb
sorry for the basic question, trying to do this…
<%= link_to (image_tag picture.photo.url(:thumb)), (image_tag
picture.photo.url) %>
Anyone help me fix the syntax?
bb
<%= link_to(image_tag(picture.photo.url(:thumb)), picture.photo.url)
%>
On Apr 26, 6:29 am, bingo bob [email protected]
Brian D. wrote:
<%= link_to(image_tag(picture.photo.url(:thumb)), picture.photo.url)
%>On Apr 26, 6:29�am, bingo bob [email protected]
Many thanks. works a treat. Don’t know why i was making it so
complicated!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs