/**
  * Update the specified submission in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update($id)
 {
     $data = Input::all();
     $data['user_id'] = User::getIdFromName();
     // Add user_id to data
     $submission = Submission::rideShareLogGet($id);
     $validator = Validator::make($data = Input::all(), Submission::$rules);
     if ($validator->fails()) {
         return Redirect::back()->withErrors($validator)->withInput();
     }
     try {
         $result = RideShareLogModel::postSubmissionData();
         Session::flash('alert_success', 'Successfully updated Submission.');
         return Redirect::to('/#/submissions');
     } catch (\Exception $e) {
         Session::flash('alert_danger', 'Failed to update Submission.');
         return $this->handleRideShareLogError($e, $e->getMessage());
     }
 }