Rails初学者在这里。我的link_to image_tag没有做任何事情,当用户点击
使用以下link_to image_tag尝试让人们点击我网站上的徽标,并让他们进入特定页面。
.content
- current_user.users_coupons.each do |uc|
.logo
= link_to image_tag(uc.coupon.drug.logo.list_item), uc.coupon, remote:true
的形象在我的网站显示正确的链接,当你鼠标,但是当你实际点击没有反应 - 它实际上并没有带你到它显示的URL。是什么赋予了?
在此先感谢!
为什么如果您希望将它们重定向,请添加'remote:true'? – 2013-03-19 23:39:52