title: Laravel 4 ajax POST
body: <p>I'm trying to make an ajax post in laravel 4, but I'm getting a 500 (Internal Server Error). 
  I've looked over the internet and I can't see what I'm doing wrong. </p>
  
  <p>My ajax post (executed from '<a href="http://flashwords.dev/app/public/words/level/1" rel="nofollow">http://flashwords.dev/app/public/words/level/1</a>'):</p>
  
  <pre><code>            $.ajax({
              url: 'http://flashwords.dev/app/public/words/post_set',
              type:'POST',
              dataType:'JSON',
              data:{
                  "words_correct": words_correct,
                  "words_false" : words_false
              },
              success:function(){
                  console.log("post success");
              }
          });
  </code></pre>
  
  <p>My route:</p>
  
  <pre><code>Route::post('words/post_set', array('as'=&gt;'post_set', 'uses'=&gt;'UserController@post_set'));
  </code></pre>
  
  <p>My function in the UserController:</p>
  
  <pre><code>public function post_set(){
      $correct = Input::get('words_correct');
      $false = Input::get('words_false');
      var_dump($correct);
  }
  </code></pre>
  
  <p>Probably I'm looking over something dumb.. </p>
  
  <p>Thanks in advance!  </p>