Angular Templates in Rails

I use stone angular-rails-templates. I have a folder in my /app/assets/javascriptscalled templates, and I included it in application.js:

//= require_tree ./templates

Inside the templates there is a file test.htmlwith <h1>hello world</h1>.

For some reason test.htmlnot found, but when I exit $templateCache.info()(using app.run) in the console, I have:

Object {id: "templates", size: 0}

0
source share
1 answer

This turned out to be a star incompatibility (see here )

Short version:

  • Add gem 'sprockets', '2.12.3'to Your Gemfile
  • Run bundle update sprockets
+1
source

All Articles