I have a simple model called â€œfooâ€ and Iâ€™m using the scaffold generated
code. When I edit â€œfooâ€ I want to be able to click a check box that says
â€œupdate allâ€. When the param is passed I cycle through all the â€œfoosâ€ in
the database and update them with the single â€œfooâ€ form variablesâ€¦if the
param isnâ€™t passed then it only updates the selected â€œfooâ€.
I have a sample that works but it bypasses all the validation. Also, I
get stale object errors because the lock_version for the unselected
models isnâ€™t getting incremented when itâ€™s selected for edit, since itâ€™s
Has anyone done this before?