web/mooctracker_rails/app/controllers/users_controller.rb
def update
    @user = User.find(params[:id])
    if @user.update_attributes(user_params)
      redirect_to @user
    else
      render 'edit'
    end
  end
#Send a PUT/PATCH request on /student/id , to edit a particular user
Send a PUT/PATCH request on /student/id , to edit a particular user
Send a PUT / PATCH request on / student / id to edit a particular user
def update
    @user = User.find(params[:id])
    if @user.update_attributes(user_params)
      redirect_to @user
    else
      render 'edit'
    end
  end
def update @user = User . find ( params [ :id ] ) if @user . update_attributes ( user_params ) redirect_to @user else render 'edit' end end
Send a PUT/PATCH request on /student/id , to edit a particular user
Send a PUT / PATCH request on / student / id to edit a particular user