title: $resource calls to url failing in simple angularjs app built in rails
body: <p>I mostly followed Ryan Bates' setup for a angular app in rails.  In my gemfile: </p>
  
  <pre><code>gem 'angularjs-rails'
  </code></pre>
  
  <p>and in the application.js: </p>
  
  <pre><code>//= require angular
  //= require angular-resource
  //= require turbolinks
  //= require_tree .
  </code></pre>
  
  <p>Here is what I believe is all the relevant code from views/pages.home.html: </p>
  
  <pre><code>&lt;body data-ng-app="dithat"&gt;
    &lt;div class="container" data-ng-controller="accomplishmentController"&gt;
      &lt;p&gt; What'd you do? &lt;/p&gt;
      &lt;form ng-submit="submit()"&gt;
        &lt;input type="text" ng-model="newAccomp" /&gt;
      &lt;/form&gt;
      &lt;div data-ng-repeat="accomp in accomplishments | filter:newAccomp" &gt;
        &lt;div class="box" ng-click="addToCount()"&gt;
          &lt;div class="accomplishment"&gt;
            {{ accomp.name }}
            &lt;a href="#" ng-click="delete()" class="x"&gt;x&lt;/a&gt;
            &lt;p class="count"&gt; {{ accomp.count }} &lt;/p&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;  
  
    &lt;script type="text/javascript"&gt;
      app = angular.module("dithat", ["ngResource"]);
      function accomplishmentController($scope, $resource) { 
        Entry = $resource('/api/users.json');
        console.log(Entry.query());
        $scope.accomplishments = [];
        $scope.submit = function() {
          $scope.accomplishments.unshift({ name: $scope.newAccomp, count: 0 });
          $scope.newAccomp = '';
        }
        $scope.addToCount = function() {
          var currentcount = this.accomp.count;
          this.accomp.count = currentcount + 1;
        }
        $scope.delete = function() {
          index = this.$index;
          $scope.accomplishments.splice(index, 1)
        }
      }
  
    &lt;/script&gt;  
  &lt;/body&gt;
  </code></pre>
  
  <p>The code works, as in the app is behaving how it should, however it is not making the resource call.  I tried this with <code>$http</code> as well and it didn't work either.   What am I missing??!!  Thanks a lot!</p>