Question

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

Was it helpful?

Solution

I do it this way:

= link_to image_tag( 'header.jpg'), 'http://www.google.com'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top