On Nov 23, 2010, at 1:19 PM, RubyonRails_newbie wrote:

Hi all,

Can anyone tell me what it is I've done wrong with the following?

I'm wanting to use images to link to the page in the site.

So I have this:

<%= link_to(image_tag "about.png", :border =>"0", :controller =>
"site", :action => "about") %>

Unfortunately, the image doesn't link as I'd expected. The page
renders, but that's all.

Can anyone help? I know it's probably something REALLY obvious, but i
just can pin it down

Many Thanks.

Try placing parentheses around the arguments to each function.

Think about where Ruby is presuming the argument lists are from the punctuation that you've given.

-Rob

Rob Biedenharn          
[email protected]     http://AgileConsultingLLC.com/
[email protected]               http://GaslightSoftware.com/

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to