I am currently looking for a software/web development job preferably as a Rails-based developer.
Please email me at weston@westonganger.com. Thanks in advance for any leads!

Action View:Template:Error With Angular Strap & Rails Assets

Posted by Weston Ganger

I was getting the following error after trying to add angular-strap with rails-assets to my angular/rails application using the gem rails-assets-angular-strap


The problem arises from the minified name of the js files. Add these lines to application.js:

//= require angular-strap/angular-strap.js
//= require angular-strap/angular-strap.tpl.js

Basically rails ignores the extensions somewhat because of the added .min.js to be interpreted as .js

Its reading the file as mime type .tpl which is undesired so we used full paths to override this feature

Article Topic:Software Development - Rails

Date:August 20, 2014

Recommended Posts