最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

zeitwerk - Rails Zetwerk. How to load a file from a gem - Stack Overflow

programmeradmin1浏览0评论

I have a helper module, and it uses a method located in a gem:

 include FontAwesome::Rails::IconHelper 

I'm getting the warning message:

  DEPRECATION WARNING: Initialization autoloaded the constant FontAwesome::Rails::IconHelper.

I tried including the gem in the file:

require 'font-awesome-rails'

But no success so far. How should I load the library using the correct way?

发布评论

评论列表(0)

  1. 暂无评论