0
下面的代码:当我使用link_to img_tag助手时,为什么rails 3显示“(/)”?
<%= link_to tag("img", { :src => "/images/logo.png", :alt => "logo"}, false), {:controller => 'frontpage', :action => 'index'}, :class => "logo" %>
输出:
'(/)'
的 '(/)' --minus引号,付出的结束图像
为什么不使用image_tag帮助器,只是出于兴趣? – noodl 2011-01-22 18:27:03
我开始使用image_tag,但得到了同样的问题。 – 2011-01-22 18:31:51