Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails 4 Couldn't find file 'angular-rails-templates'

I'm following this tutorial: https://thinkster.io/angulartutorial/angular-rails/ and everything went well till the part where I had to arrange my angular code with folders in the rails assets pipeline javascripts and use the gem 'angular-rails-template' (https://github.com/pitr/angular-rails-templates) to reach them.

I've installed the gem through the Gemfile and I'm getting a "couldn't find file 'angular-rails-templates'" error even though I've required the file in the application.js:

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

Any suggestions?

like image 933
Maboo Avatar asked Jan 16 '15 19:01

Maboo


1 Answers

Apperantly I was sure that I restarted the server, which I didn't. If anyone encouter this problem try the old fashioned solution to fix it.

like image 171
Maboo Avatar answered Oct 22 '22 11:10

Maboo