Best way to use Twitter Bootstrap Icons as Links in Ruby on Rails 3?

后端 未结 5 1754
傲寒
傲寒 2020-12-30 16:04

What\'s the best way to use an icon provided by Twitter Bootstrap as a link in Rails 3?

Currently, I am using it like the pasted snippet, but the icon doesn\'t displ

5条回答
  •  暖寄归人
    2020-12-30 16:32

    Unless I'm misunderstanding what you're after, way less rigamarole:

    <%= link_to('', vote_against_mission_mission_path(:id => mission.id), :class => "chevron-down") %> 
    

提交回复
热议问题