環境
- macOS Mojave 10.14.1
- Rails 5.1.6
- ruby 2.5.0
- Font Awesome
やりたいこと。以下のようにbutton_toにアイコンを埋め込みたい。

ブロックを使えば簡単にできる。
1
2
3
|
<%= button_to new_user_registration_path, :class => 'ui button', :method => :get do %>
<i class="bookmark icon"></i> Bookmark
<% end %>
|
See Also