How to submit multiple NEW items via Rails 3.2 mass-assignment

前端 未结 8 1504
醉梦人生
醉梦人生 2020-12-04 06:33

I have a pretty standard use-case. I have a parent object and a list of child objects. I want to have a tabular form where I can edit all the children at once, as rows in th

8条回答
  •  再見小時候
    2020-12-04 06:50

    There is a gem called cocoon for doing this, I would go for a leaner mor DIY aproach but it was specifically built for this cases.

提交回复
热议问题