Recently ,I've been working on Ruby on Rails and had to do something like the example shown below, but using the helper link_to:
Example:
<a data-method="delete"rel="nofollow" href='sign_out'>
<i class="fa fa-sign-out fa-fw"</i>Logout
</a>
After researching, I found the answer, you should add your html to the link_to helper as shown below:
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking Ruby on Rails Online Training
ReplyDelete