Hi,
I would like to have an editable DropDownList in my ruby on rails application. The user should be able to select a value from the list of choices, or type in a new value (in one of the empty options in the list of choices) if no predefined choice is applicable.
I tried the { :include_blank => 'True'} option but it just provides a blank option included with a set of options for the drop-down list. Here is my code:
<%= collection_sele ct(:snapshot_vi ew, :id, SnapshotView.fi nd(:all, :select => 'DISTINCT your_machine_na me '),
:your_machine_n ame , :your_machine_n ame,{ :include_blank => 'True'}) %>
I tried to find ways to make blank option editable, but may be i am going in the wrong direction.
Any help regarding this topic is greatly appreciated.
I would like to have an editable DropDownList in my ruby on rails application. The user should be able to select a value from the list of choices, or type in a new value (in one of the empty options in the list of choices) if no predefined choice is applicable.
I tried the { :include_blank => 'True'} option but it just provides a blank option included with a set of options for the drop-down list. Here is my code:
<%= collection_sele ct(:snapshot_vi ew, :id, SnapshotView.fi nd(:all, :select => 'DISTINCT your_machine_na me '),
:your_machine_n ame , :your_machine_n ame,{ :include_blank => 'True'}) %>
I tried to find ways to make blank option editable, but may be i am going in the wrong direction.
Any help regarding this topic is greatly appreciated.
Comment