How to add blank data in select box in ruby on rails

    To show blank selection option in rails application form select use the code below where @agencies shows the whole list and :include_blank add a blank in dropdown
      

    <%= select_tag "agency", options_from_collection_for_select(@agencies, "id", "name", agency),  :style => "width:100px;", :include_blank => true, :selected => nil %>
    5
    Average: 5 (1 vote)