AngularJS app JavaScript keyed by app name thing
/code/railsapp/app/assets/javascripts/thing/
AngularJS app templates keyed by app name thing
/code/railsapp/app/assets/templates/thing/
Shared AngularJS modules
/code/railsapp/lib/assets/javascripts/angular/
If you've arrived here from: http://minhajuddin.com/2013/04/28/angularjs-templates-and-rails-with-eager-loading and if you want templates.js.erb to reload when /angular/directives/some_directive_template.html changes then you can add this https://gist.github.com/edgahan/7023047 to config/initializers/sprockets.rb
And add templates.js to the precompile asset array in application.rb, and on my layout/application.html file I have something along the lines of
<script src="application.js"> <script src="templates.js"> Then within templates.js.erb add //= depend_on_tree ./angular/directives/