Before correction
def update @gear = find_gear_by_id @gear.update(gear_params) redirect_to gears_path flash [: notice] = "Editing completed" end
⇓
Revised
def update gear = find_gear_by_id gear.update(gear_params) redirect_to gears_path flash [: notice] = "Editing completed" end
I don't know the detailed reason. .. ..
Recommended Posts