/**
  * Update the specified resource in storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function update(Palette $palette)
 {
     $input = array_except(Input::all(), '_method');
     $input['user_id'] = Auth::user()->id;
     $validation = Validator::make($input, Palette::$rules);
     if ($validation->passes() && Account::find($input['account_id'])->isMember(Auth::user())) {
         $palette->update($input);
         return Redirect::route($this->namespace . '.show', $palette->id);
     }
     return Redirect::back()->withInput()->withErrors($validation)->with('message', 'There were validation errors.');
 }