Feather: Feather on Rails

Created on 23 Oct 2018  路  2Comments  路  Source: feathericons/feather

Our project is Rails, We really want to use the icon library of your project. What should we do?

help wanted question

Most helpful comment

Hey I'm a Rails-Head and found this issue via Google.

This is the guide for standard Rails 6 setup (using Turbolinks):

Step One:
yarn add feather-icons

Step Two:
in javascripts/packs/application.js

const feather = require("feather-icons");
document.addEventListener("turbolinks:load", function() {
    feather.replace();
})

Done.

All 2 comments

Unfortunately, I don't know much about Ruby or Rails. Sorry 馃槄

There's a good chance someone else has figured out a way do use Feather with Rails. Maybe a package similar to octicons_helper exists?

I'll add the help wanted label and hopefully someone with more Ruby experience can help out :)

Hey I'm a Rails-Head and found this issue via Google.

This is the guide for standard Rails 6 setup (using Turbolinks):

Step One:
yarn add feather-icons

Step Two:
in javascripts/packs/application.js

const feather = require("feather-icons");
document.addEventListener("turbolinks:load", function() {
    feather.replace();
})

Done.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

naoufel-ui picture naoufel-ui  路  3Comments

mittalyashu picture mittalyashu  路  4Comments

kurisubrooks picture kurisubrooks  路  4Comments

chetanraj picture chetanraj  路  4Comments

tmcgann picture tmcgann  路  3Comments