Question

J'ai quelque chose comme ça dans application.html.haml:

#header
    = image_tag("header.jpg")

Comment puis-je créer ce lien vers www.google.com, par exemple?

Merci

Était-ce utile?

La solution

Je le fais de cette façon:

= link_to image_tag( 'header.jpg'), 'http://www.google.com'
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top