Created
July 12, 2013 13:33
-
-
Save TXDynamics/5984488 to your computer and use it in GitHub Desktop.
Set Destroy / Delete link in Rails to an Image or other html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= link_to '<i class=" cus-cancel"></i> Delete'.html_safe, questionnaire_path(@questionnaire), method: :delete, data: {confirm: 'Are you sure?'} %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment