Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 application.html.haml 中有这样的东西:
#header = image_tag("header.jpg")
例如,如何创建指向 www.google.com 的链接?
谢谢
我这样做:
= link_to image_tag( 'header.jpg'), 'http://www.google.com'