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