I've already installed it with Yarn and also de font-awesome-rails gem. Also included de CDN on the head tag and import "@fortawesome/fontawesome-free/css/all"
on application.js. I'm trying to render the <i class="fab fa-github"></i>
icon, among others I've tried, on my landing page. However, none of these steps are rendering any icons from my view files. What could be the problem?
Install gem "font-awesome-rails", then in erb file, change:
<i class="fab fa-github"></i>
To:
<i class="fa fa-github"></i>
Or use this helper:
<%= fa_icon "github" %>
The github awesome icon will show.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.