Last active
December 17, 2015 10:09
-
-
Save ndizazzo/5593126 to your computer and use it in GitHub Desktop.
Rails helper code that generates a bootstrap font icon, which links to the provided path.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Place the code listed above in your application_helper.rb, then you can use the following call in your views:
<%= button_link "icon-trash", event_path(e) %>
or
<%= button_link "icon-trash", event_path(e), :delete, false, ["btn-danger", "btn-mini"] %>