I would like to be able to update the “amount” of a certain item in
me order list.
The problem I run into is how to define the text_field element.
@order is the current order, which has_many :order_item which in turn
order_item has a field “amount” which should be modified…
What I tried is this below, but I get a undefined method
`order_item.amount’ for #Order:0x2375764
With kind regards,