title: Laravel: Missing argument 1 for AdminController::getUpdateUser()
body: <p>I'm new to larevel and i've been trying to solve this problem starting yesterday up to now and haven't make any progress and im stuck here....</p>
  
  <p>PLEASE HELP :(</p>
  
  <p>Here's my code for the <strong>routes:</strong></p>
  
  <pre><code>Route::get('/admin/edit', array('uses' =&gt; 'AdminController@getUpdateUser', 'as' =&gt; 'getUpdateUser'));
  
  Route::resource('admin1', 'AdminController');
  </code></pre>
  
  <hr>
  
  <p>Here's my code for the button viewing the update <strong>(I think the problem might be here and i cant think of a code that will call the id D: )</strong></p>
  
  <pre><code>    {{ link_to_action('AdminController@getUpdateUser', 'Edit', array($users-&gt;id),array('class' =&gt; 'btn btn-info')) }}
  </code></pre>
  
  <p>--
  Here's my code at my <strong>AdminController</strong>:</p>
  
  <pre><code>public function getUpdateUser($id)
  {
  
  
       $users = User::find($id);
  
  
      //load view and pass users  
      return View::make('admin.edit')
          -&gt;with('users', $users);
  
  
  }
  
  
  
  public function updateUser($id)
  {
  
      $validate = Validator::make(Input::all(), array(
          'firstname' =&gt; 'required',
          'lastname' =&gt; 'required',
          'middlename' =&gt; 'required',
          'address' =&gt; 'required',
          'birthday' =&gt; 'required',
          'contact' =&gt; 'required|numeric',
          'email' =&gt; 'required'
      ));
  
  
        if ($validate-&gt;fails()) {
          return Redirect::to('admin.edit')
              -&gt;withErrors($validate)
              -&gt;withInput(Input::except('password'));
  
           }
           else
              {
  
         $user = User::find($id);
        $user-&gt;firstname = Input::get('firstname');
          $user-&gt;lastname = Input::get('lastname');
          $user-&gt;middlename = Input::get('middlename');
          $user-&gt;address = Input::get('address');
          $user-&gt;birthday = Input::get('birthday');
          $user-&gt;contact = Input::get('contact');
          $user-&gt;email = Input::get('email');
          if($user-&gt;save())
  
              {
              return Redirect::route('admin.view')-&gt;with('success', 'USER HAS BEEN UPDATED');
          }
      else
      {
          return Redirect::route('admin.view')-&gt;with('fail', 'An error occured while updating the user. Please double check your inputs and try again.');
              }
          }
  }
  </code></pre>
  
  <hr>
  
  <p>Here's my code for <strong>admin.edit</strong></p>
  
  <pre><code>@extends('layouts.master')
  @section('head')
  @parent
  &lt;title&gt;Manage Users&lt;/title&gt;
  @stop
  
  
  
  @section('content')
  
  &lt;div class ="container"&gt;
  &lt;h1&gt;Edit User&lt;/h1&gt;
  
  {{ Form::model($users, array('route' =&gt; array('admin1.updateUser', $users-     &gt;id), 'method' =&gt; 'PUT')) }}
  
  
  --textboxes and inputs here--
  
  
  {{ Form::submit('Update', array('class' =&gt; 'btn btn-info')) }}
  </code></pre>
  
  <p>Please help me T_T THANK YOU!!! </p>