Skip to content

Commit

Permalink
include blank for first item in select list
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed May 2, 2024
1 parent 1fd0249 commit 0bbc597
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
</div>

<div class="row column">
<%= form.select :resource_id, surveys.map { |survey| [survey[:title], survey[:id]] }, include_blank: true, label: t(".resource") %>
<%= form.select :resource_id, options_for_select([["", ""]] + surveys.map { |survey| [survey[:title], survey[:id]] }), include_blank: false, label: t(".resource") %>
</div>

0 comments on commit 0bbc597

Please sign in to comment.