Go Back   CodingForums.com > :: Server side development > Ruby & Ruby On Rails

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-21-2012, 04:15 AM   PM User | #1
xuanyinwen
New to the CF scene

 
Join Date: Jul 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
xuanyinwen is an unknown quantity at this point
need help on ruby language

Hi there, any one can help please:
I am using the following script to show a photo on my ROR page from my server,
it got a link on it, just wonder how can I delete the link


<%= 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 try to delete the link_to part, but it stop working after change.

Thanks
Wayne
xuanyinwen is offline   Reply With Quote
Old 10-22-2012, 03:52 PM   PM User | #2
ramblex
New to the CF scene

 
Join Date: Nov 2011
Location: Bath, UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
ramblex is an unknown quantity at this point
So you just want to show the image? If that's the case:

Code:
<%= image_tag (property.images[0].image.url('550x412', :jpg)) if property.images[0] -%>
ramblex is offline   Reply With Quote
Old 03-21-2013, 04:21 PM   PM User | #3
natesphotos
New to the CF scene

 
Join Date: Mar 2013
Location: San Diego
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
natesphotos is an unknown quantity at this point
Thanks!

Thanks for the help.
natesphotos is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:32 AM.


Advertisement
Log in to turn off these ads.