我有这个链接:
<%= link_to "+1", video_votes_path( :video_id => video.id, :type => "up" ), :method => :post, :remote => true %>
但我希望将其视觉外观转换为:⇑与HTML实体⇑
。如何在保持链接功能的同时执行此操作?
答案 0 :(得分:6)
<%= link_to "⇑".html_safe, video_votes_path( :video_id => video.id, :type => "up" ), :method => :post, :remote => true %>