I have a rails application, using angularjs for the client side development. I try to load a template located in `app/assets/javascripts/templates/\':
myApp
try this, I hope this will worked.
myApp.config(function ($routeProvider) { $routeProvider. when('/', { templateUrl: '/index.html', controller: 'MainController' }). otherwise({ redirectTo: '/' }); });