September 23rd, 2012, 11:10 PM
Any one can help my ruby script please
I got a website set up with ruby on rails, and the follow script is for showing a image on the page, and the image got a link which llink to image path. Now I would like to delete the link on the follow script, just want it show the photo. any one can help please.
<%= if property.images then link_to image_tag (property.images.image.url('550x412', :jpg)), user_property_image_path(user, :id => property.images, roperty_id => property) end -%>
November 8th, 2012, 01:21 PM
Does that work?
<%= if property.images then image_tag(property.images.image.url('550x412', :jpg)) end -%>