I have a multi select box in my file.
<%= c.select(:city, [['Indore', 'Indore'],
['Delhi', 'Delhi'],
['Kolkata', 'Kolkata'],
['Hydrabad', 'Hydrabad'],
['Jabalput', 'Jabalput']
],{ },
{ :multiple => true }
) %>
when i select "Hydrabad" and "Jabalpur" cities and submit the form then params is coming like
(rdb:3359) p params
{"utf8"=>"✓", "authenticity_token"=>"SsuXi8K205lHGsKJgkqGpps09gCbehJoO/R8vXGWx+g=", "city"=>{"city"=>["", "Hydrabad", "Jabalput"
]}, "commit"=>"Save City", "controller"=>"posts", "action"=>"addCity"}
So in the city "city"=>{"city"=>["", "Hydrabad", "Jabalput" ]}
, first value is coming blank i.e coming before "Hydrabad"
Please clear this behavior? I don't want that blank value as first position.