I have this piece of code:
= f.input :category, :as => :select, :label => false, :collection => Choices[\"Categories\"]
Choices[\"Cate
or you can customize call back action in your model to remove any empty string in the array parameter, assuming a parameter with the name "types":
before_validation :remove_empty_string def remove_empty_string types.reject! { |l| l.empty? } end