<a href="/">
<i >file_download</i>
Export to CSV
</a>
I am using a material_icon gem. "file_download" is a download icon in a material icon. I want it to be like a button with the download icon and the text "Export to CSV" next to it.
CodePudding user response:
Should be something like:
= link_to foo_path do
%i.material-icons file_download
Export to CSV