Rails rails 中,如何给<%= link_to "test",....%>添加 title 属性

mayday · October 27, 2012 · Last by simlegate replied at October 30, 2012 · 2669 hits

我想实现<%= link_to "test",....%>转化为test

哦哈,谢啦,我撒比了,a 标签没有 title 属性。

我想说的是,a 可以有 title 属性的...

恩,可以的 。。。

<%= link_to "test",:title =>"test" %>
You need to Sign in before reply, if you don't have an account, please Sign up first.