Files
openfoodnetwork/app
David Cook f69fc67d5e Refactor: using Rails form magic
Now we don't have to specify the field names on products, yay!

I tried desparately to get it working for the nested variant forms too, but sadly the form builder refuses to acknowledge the relationship. The form builder simply doesn't support a collection of objects in this way.

We could try creating a fake model similar to ProductSet that accepts_nested_attributes_for :products. But it woudl be better to create a custom form builder to do it.

Or, just manually specify field names for now!
2023-08-31 16:41:41 +10:00
..
2023-08-03 14:52:45 +01:00
2023-04-14 16:19:21 +10:00
2023-08-03 14:52:45 +01:00
2023-08-20 13:00:36 +09:00
2023-08-22 11:40:58 +10:00
2023-08-08 11:36:31 +01:00
2023-08-31 16:41:41 +10:00
2023-08-25 17:23:05 +10:00