我有这个select
助手:
= form.select(:door, options_for_select(Door.variants), {}, style: "width: 100%", required: true, prompt: "select me")
它呈现以下HTML:
<select style="width: 100%" required="required" prompt="select it" name="door" id="door" class="error">
<option value=""></option>
<option value="var1">var1</option>
<option value="var2">var2</option>
</select>
但是为什么没有包含空值的文字呢?我该如何解决?