Posts by Marcio de Jesus • 1 point
1 post
-
-2
votes2
answers240
viewsA: accepts_nested_attributes_for no Rails 4
is missing put in params the id field more or less like this: def motor_params params.require(:motor).permit(:nome, pecas_attributes: [:id, :item]) end and the new method is more or less like this:…