Dynamic form elements via AJAX

Hmmmmmmmmm. You could create a hash and populate it with a mapping of
position to choice_id. You will need to generate a unique ID for each
added choice... I would try storing the mapping and the 'current ID' in
the session. Then, when you create a new choice:

- Add one to the current ID in the session and use it for the choice
ID. Save it to the session.
- Get the hash from the session. Add the ID to it, pointing to the
position. You will have to add one to all hash values greater than the
position you want to insert to first.
- Save the hash to the session.

Deleting would be the same in reverse...

Does that make sense?