Rails Nested Forms using jQuery and SimpleForm

Rails comes with built-in support for allowing a model to accept "nested attributes": where one resource can accept attributes for another (sub)resource. It works out of the box for when a form needs to support just one record of the nested resource. But what if a form needs to accept unlimited records of the nested resource?

Here is an easy jQuery-only solution for creating unlimited nested forms.