this is a ruby script for a photo with url link.
<%= if property.images[0] then
link_to image_tag (property.images[0].image.url('350x263', :jpg)),
user_property_image_path(user, :id => property.images[0], :property_id => property),
end -%>
which part of script will only show url link without display the photo?
I tried this which is not work:
<%= user_property_image_path(user, :id => property.images[0], :property_id => property),
end -%>
This will just render the link (without an image, and without redundantly specifying the URL twice):
(You can pass nil as the first argument, and it will just link the URL that is generated.