How can I add dynamic fields to a rails form to create multiple objects from the same model? I'm able to do this with nested forms using the cocoon gem but for fields of the same model I can't figure it out. I tried to add fields dynamically trough js but without success! Can anyone point me on the right direction? Thanks.
Asked
Active
Viewed 158 times
3
-
https://stackoverflow.com/questions/15317837/bulk-insert-records-into-active-record-table – Oshan Wisumperuma Jan 28 '19 at 12:39