title: Angular JS Multiple Inputs in Form
body: <p>Would there be any reason that multiple inputs aren't being passed from an Angular form to the controller. Either one of the inputs will submit. The problem is both of them won't submit in the same form.</p>
  
  <pre><code>&lt;form name="myForm" ng-controller="PostIndexCtrl" class="my-form"&gt;
          &lt;input type='text' ng-model="entry.question_id" name="question_id" value="1"&gt;
          &lt;input type='text' ng-model="entry.answer" name="answer"&gt;&lt;br/&gt;
          &lt;button class="btn btn-primary" ng-click="saveEntry()"&gt;Save&lt;/button&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>Here is the controller</p>
  
  <pre><code>.controller("PostIndexCtrl", function($scope, Post, $resource, $http) {
  
      Post.query(function(data) {
          $scope.posts = data;
      });
  
      var data = $resource('/api/answers/', {answer: '@answer', question_id: '@question_id'});
  
      $scope.saveEntry = function() {
          data.save($scope.entry);
      }
  
  });
  </code></pre>