I tried :include_blank => true
, but it didn\'t work.
Since you have tagged as select-tag you can use the option include_blank
with select_tag
.
From the documentation:
select_tag "people", options_from_collection_for_select(@people, "id", "name"), :include_blank => true
# =>
Or you can use options_for_select
:
<%= select_tag column.name, options_for_select(Model.all.collect{|mt| [mt.name, mt.id]}), :include_blank => true %>