Rails 4 Could not find file 'angular -rails-templates'

I follow this tutorial: https://thinkster.io/angulartutorial/angular-rails/ , and everything went fine until I had to sort my angular folders code in javascripts with rails resource attributes and use gem 'angular -rails -template '( https://github.com/pitr/angular-rails-templates ) to achieve them.

I installed gem via the Gemfile and I get the error "cannot find the file 'angular -rails-templates', although I need the file in application.js:

//= require angular //= require angular-rails-templates //= require angular-ui-router //= require_tree . 

Any suggestions?

+5
source share
1 answer

I am sure that I restarted the server, which I did not do. If anyone takes advantage of this problem, try an old-fashioned solution to fix it.

+9
source

Source: https://habr.com/ru/post/1211281/


All Articles