HTML select with widgets for adding items

Is there a rails-y way to implement an HTML select that lets you add
items to the select list on the fly? Contents of the select would come
from a table; basically you’d be adding records to a one table while
editing a many record.

That could be coded by hand, but I’m wondering if there’s an existing
helper or something that packages it up rails-style.

Hi

that would also be exactly what I am looking for, with the extent that I
don’t really have any idea how one would code that oneself if there is
no solution.

If you really don’t find one, could you maybe post some code fragments
here, so that I can learn from them?

Much appreciated,
Daniel