Notes posted by nessur
RSS feed
0 thanks
sure, but what types are there to chose from?
the ‘symbol’ parameter is not something specific like ‘:after_save’, but rather ‘:save’
I suppose ‘:update’ works as well.
2 thanks
Dont use _delete
Most blog articles about accepts_nested_attributes_for, including the one from @mattsa and @annaswims, tell you to add a
'_delete' => 1
when you want a deletion checkbox, hidden attribute, etc.
But this stopped being true a while ago. This is just a “Watch Out!” Make sure you use
'_destroy' => 1
instead.


