There are two solutions I can think of:
- Put an option “Add new item” in the list together with other
input box in case this option is selected by the user.
- Have a standard input box and an (image) button next to it which
would open a fake drop down list - something like those autocomplete
things. This way user could either directly type, or click the button
and select from the list.
The first solution would be easier to do but once user would click on
the “Add new item”, there would be no way to go back to the list.
Anyway, it would be great, if some better Rails developer could create
a helper for such a widget. I would be really thankful
On Jan 29, 2:58 pm, “[email protected]”