1

Reference: Rails has_many through form with additional attributes

But it is not solution for me... I want to accept only checked elements, without dependency if other attributes are filled.

E.g.: I want to create my menu. There is each food with checkbox and you are able to edit the price in text field (but you don't have to). I want accept all checked foods & save their new price if filled, or old price if not.

Community
  • 1
  • 1
ProkopS
  • 365
  • 2
  • 13

0 Answers0