def edit @assignment = Assignment.find(params[:id]) end def update assignment = Assignment.find(params[:id]) if assignment.update(assignment_params) redirect_to "/assig