Rails 4: Where to put JavaScript/CSS plugins

前端 未结 3 602
执念已碎
执念已碎 2021-01-20 03:40

I have Rails 4rc1 application. I need to integrate some JavaScript / CSS plugins / 3rd party libraries/ to my application. I know vendor/plugins directories are deprecated i

3条回答
  •  广开言路
    2021-01-20 03:50

    Extract your vendor/plugins to their own gems and bundle them in your Gemfile. If they're tiny, not worthy of the own gem, fold it into your app as lib/myplugin/* and config/initializers/myplugin.rb.

提交回复
热议问题