我正在关注本教程:https://thinkster.io/angulartutorial/angular-rails/一切都很顺利,直到我不得不在 Rails Assets 管道 javascripts 中用文件夹排列我的 Angular 代码并使用 gem 'angular-rails-template'( https://github.com/pitr/angular-rails-templates )到达它们。
我已经通过 Gemfile 安装了 gem,即使我在 application.js 中需要该文件,我也会收到“找不到文件 'angular-rails-templates'”错误:
//= require angular
//= require angular-rails-templates
//= require angular-ui-router
//= require_tree .
有什么建议?
最佳答案
显然我确定我重新启动了服务器,但我没有。如果有人遇到此问题,请尝试使用旧式解决方案来修复它。
关于ruby-on-rails - Rails 4 找不到文件 'angular-rails-templates',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27990988/