Ton*_*ony 60 haml ruby-on-rails
我在application.html.haml中有这样的东西:
#header
= image_tag("header.jpg")
Run Code Online (Sandbox Code Playgroud)
例如,如何建立指向www.google.com的链接?
谢谢
gde*_*ino 120
我是这样做的:
= link_to image_tag( 'header.jpg'), 'http://www.google.com'
Run Code Online (Sandbox Code Playgroud)