def update
      if @user.update_attributes(user_params)
        if current_user?(@user)
          flash[:success] = 'Your profile has been updated.'
          if inline_request?
            render 'show', formats: [ :json ]
          else
            redirect_to @user
          end
          return
        else
          flash[:success] = "The user #{@user} has been updated."
          if inline_request?
            render 'show', formats: [ :json ]
          else
            redirect_to users_path
          end
          return
        end
      end
      render 'edit'
    end
def update
      if @user.update_attributes(user_params)
        if current_user?(@user)
          flash[:success] = 'Your profile has been updated.'
          if inline_request?
            render 'show', formats: [ :json ]
          else
            redirect_to @user
          end
          return
        else
          flash[:success] = "The user #{@user} has been updated."
          if inline_request?
            render 'show', formats: [ :json ]
          else
            redirect_to users_path
          end
          return
        end
      end
      render 'edit'
    end
PUT /incline/users/1