How could I clone a child object in Rails using cocoon?

I have a parent object with scores of children that are all very much alike. I have a form, with a table, to edit them using cocoon. With it (and this answer), I can add new rows to the table, and ...