We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I show a font-awesome icon in the title? The following does not work:
"data-confirm-title" => "<i class='fa fa-trash'></i> Delete User".html_safe
The text was updated successfully, but these errors were encountered:
This worked just fine for me
<%= link_to user_path(@user), class: "btn btn-danger", data: {confirm: "Are you sure?", "confirm-title": '<span class="fa fa-trash-o"> Delete User' } do %><span class="fa fa-trash-o"> Delete User</span><% end %>
Sorry, something went wrong.
a) why wouldn't that work? b) Something like corejh proposed feels right for now
No branches or pull requests
How do I show a font-awesome icon in the title? The following does not work:
The text was updated successfully, but these errors were encountered: