< mockra >

Bootstrap Icons as Links in Rails - 01 Mar 2012


Using Bootstrap icon sprites with the Rails link_to helper is really simple. Here’s an example using haml:

= link_to list_path( list ), method: :delete do
  %i.icon-remove
end