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

Posted By Weston Ganger

<p>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</p>

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

<p>Basically rails ignores the extensions somewhat because of the added .min.js to be interpreted as .js</p>
<p>Its reading the file as mime type .tpl which is undesired so we used full paths to override this feature</p>

Article Topic:Software Development - Ruby / Rails

Date:August 20, 2014