title: Form open to controller method - "Unknown action"
body: <p>New to Laravel 4. I've created a form within a blade template and I'm following the <a href="http://laravel.com/docs/html" rel="nofollow">snippet from</a> which says that you can point a forms action to a controller method by using 'Form::open(array('action' => 'Controller@method'))'. I've created a new controller called UsersController with artisan and have created a new method within the controller named userLogin(). When I point to that method when opening a form I get an "InvalidArgumentException, Unknown action" error. If I adjust the open action to point to UsersController@index, all is well. I've run composer dump-autoload, but the issue remains.</p>
  
  <p>snippet of login.blade.php:</p>
  
  <pre><code>{{ Form::open(array('action' =&gt; 'UsersController@userLogin')) }}
  </code></pre>
  
  <p>snippet of UsersController.php:</p>
  
  <pre><code>public function userLogin()
  {
  //
  }
  </code></pre>
  
  <p>Can anyone tell me if I'm missing something?</p>
  
  <p>Thanks all. Adding the following to routes.php resolved the issue:</p>
  
  <pre><code>Route::post('login', 'UsersController@userLogin');
  </code></pre>