How to set belongs_to on in a form
I have a create action for Plan that sets the Product (Plan belongs_to Product)
I have a form that I create like this...
and then a select input
This raises an error:
I tried
forms: [auto?: true]
and then I don't get an error but I also don't get any field.2 Replies
Oh I had this same issue, I ended up using the id field and not inputs for, so try changing your action to product_id and use it as a field instead
Thanks @michaelst