def update
    @student = Student.find(params[:id])

    respond_to do |format|
      if @student.update_attributes(params[:student])