[Rails] form_forのsubmitでfont-awesomeを使う
<%= form_for @hoge do |f| %>
<%= f.button :type => "submit", style: 'border-style: none;' do %>
<i class='fa fa-star'></i>
<% end %>
<% end %>
f.submit ではどうにも使えず、button の type 指定でいけるもよう。
この記事が気に入ったらサポートをしてみませんか?