Rails上的角度模板

我正在使用angular-rails-templates gem。 我的/app/assets/javascripts有一个名为templates的文件夹,我将它包含在application.js

 //= require_tree ./templates 

在模板内部有一个带有

hello world

test.html文件。

出于某种原因,当我在控制台中注销$templateCache.info() (使用app.run )时,我找不到test.html

对象{id:“templates”,大小:0}

结果是链轮不兼容(见这里 )

简短版本是:

  1. 将gem’sprockets gem 'sprockets', '2.12.3'到您的Gemfile中
  2. 运行bundle update sprockets
    Interesting Posts