title: SailsJS pending ajax post (NodeJS)
body: <p>I want to process AJAX data in my sailsJS app but the ajax post data always stop at pending state here is my code at my view.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $('#submit').click(function(){
       $.ajax({
             url: 'users/create',
              type: 'POST',
              data: JSON.stringify($('#username').val()),
              contentType: 'application/json',
              dataType: 'json',
              cache: false, 
              success: function(data){
                 alert('Success!');
               }
               ,error: function(jqXHR, textStatus, err){
                    alert('text status '+textStatus+', err '+err);
               } 
            });
       });
   &lt;/script&gt;
  </code></pre>
  
  <p>and here is the code at my controller</p>
  
  <pre><code>var UsersController = {
    create: function (req, res) {
       console.log(req);
   }
   };
   module.exports = UsersController;`
  </code></pre>
  
  <p>do i missed something?  i also set the policies to true all over my controller</p>