Turn a link into an HTML entity with exact same functionality
I have this link:
<%= link_to "+1", video_votes_path( :video_id => video.id, :type => "up" ), :method => :post, :remote => true %>
开发者_JAVA技巧
but I want to turn its visual appearance to this: ⇑ with the HTML entity ⇑
. How can I do this while keeping the link's functionality?
<%= link_to "⇑".html_safe, video_votes_path( :video_id => video.id, :type => "up" ), :method => :post, :remote => true %>
精彩评论