我正在尝试将bootstrap-tag ( https://github.com/fdeschenes/bootstrap-tag ) 添加到我的 rails 应用程序中。我按照以下步骤
1) 将 bootstrap-tag 文件夹添加到 vendor/assets。现在css文件的路径是* vendor/assets/bootstrap-tag/css/bootstrap-tag.css。*
2) 使用Rails.application.config.assets.paths检查我的资产管道路径,我可以看到路径../vendor/assets/bootstrap-tag。
3)在 application.css 我添加了*=require css/bootstrap-tag.css(此方法适用于我添加到 rails 的所有其他类似插件)
但是当我在 chrome 中加载我的应用程序并检查源代码时,链接显示为“/assets/../bootstrap-tag/css/bootstrap-tag.css?body=1” media="all" rel="样式表”
当我点击它时,它给了我没有路线匹配 [GET] "/bootstrap-tag/css/bootstrap-tag.css"
上述步骤适用于我使用的所有其他类似插件,除了这个。请帮忙