#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    9
    Rep Power
    0

    Any one can help my ruby script please


    Hi there,
    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[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 -%>

    many thanks
    Wayne
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    9
    Rep Power
    0
    Try this:
    Code:
    <%= if property.images[0] then image_tag(property.images[0].image.url('550x412', :jpg)) end -%>
    Does that work?

IMN logo majestic logo threadwatch logo seochat tools logo