0

I have a Rails website, and the following script is for showing an image on the page. The image has a link which links to the image's path:

<%= if property.images[0] then link_to image_tag (property.images[0].image.url('550x412', :jpg)), user_property_image_path(user, :id => property.images[0], roperty_id => property) end -%>

I would like to delete the link to the image; I just want it to show the photo without a link.

4

1 に答える 1

4

<%= if property.images[0] then image_tag (property.images[0].image.url('550x412', :jpg)) end %>

Read about the link_to helper method.

于 2012-09-24T21:46:54.060 に答える