这是我的第一篇文章!
我想使用一个字体很棒的图标:<i class="fas fa-star"></i>
以simple_form形式。<%= f.input :rating, collection: 0..5 %>
最佳方法是什么?a ⭐️ with 'rating' a side谢谢
对我来说,最好的方法是使用wrapper_html:
<%= f.input :rating, wrapper_html: { class: 'fas fa-star' }, collection: 0..5 %>
https://stackoverflow.com/questions/54945633/rails-simple-form-input-with-font-awesome