Jus*_*zer 0 html ruby-on-rails hyperlink ruby-on-rails-3
我有这个链接:
<%= link_to "+1", video_votes_path( :video_id => video.id, :type => "up" ), :method => :post, :remote => true %>
Run Code Online (Sandbox Code Playgroud)
但是我想把它的视觉外观变成这样:⇑与HTML实体⇑.如何在保持链接功能的同时执行此操作?
<%= link_to "⇑".html_safe, video_votes_path( :video_id => video.id, :type => "up" ), :method => :post, :remote => true %>
Run Code Online (Sandbox Code Playgroud)