On the website when I try to edit the assignment. It does not work. I think the update method needs to be fixed? Please advice me

前端 未结 0 1842
無奈伤痛
無奈伤痛 2020-11-29 05:23

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题