下の私のアプリの画像を見ると、最初のボタンにはグリフ アイコン (再生アイコン) がなく、2 番目のボタンにはあることがわかります。下のボタンのように、最初のボタンにグリフアイコンを配置するのを手伝ってもらえますか?
この投稿Ruby on Rails のボタンに Bootstrap アイコンを追加すると、このUsing link_to with embedded HTMLは私にとってはうまくいきませんでした。これは、最初と 2 番目のボタンのコードです。
<div>
<blockquote class="pull-left">
<p id="joke_section">
<%= @l.content %>
</p>
<small><%= @l.author %> </small>
<%= button_to "Następny", random_joke_path, {remote: true, class: "btn btn-small"} %>
</blockquote>
</div>
</div>
</div>
<div><blockquote class="pull-left">
<p id="mycontainer"><%= @l.content %> </p>
<small><%= @l.author %> </small>
<button id="but" class="btn btn-small", "pull=right" type="button">
Następny <i class="icon-play"></i>
</button>
</blockquote></div>