views:

657

answers:

1

I have something like this in application.html.haml:

#header
    = image_tag("header.jpg")

How do I make that link to www.google.com, for example?

Thanks

+3  A: 

I do it this way:

= link_to image_tag( 'header.jpg'), 'http://www.google.com'
gdelfino
that works, thank you. do you know how i can remove the image border? set style stuff in the helper?
Tony
Just remove it with CSS, if you use SASS: #header a img :border-style none
gdelfino