I have something like this in application.html.haml:
我在application。html。haml:
#header
= image_tag("header.jpg")
How do I make that link to www.google.com, for example?
例如,我如何建立到www.google.com的链接?
Thanks
谢谢
1 个解决方案
#1
116
I do it this way:
我是这样做的:
= link_to image_tag( 'header.jpg'), 'http://www.google.com'
#1
116
I do it this way:
我是这样做的:
= link_to image_tag( 'header.jpg'), 'http://www.google.com'