I’m using materialize_css as view style in my templates.
So I would like to generate something like this:
<select class="" id="form_choice" name="form[choice]"> <option value="" disabled selected>Choose a color</option> <option value="white">white</option> <option value="black">black</option> <option value="gray">gray</option> </select>
but I’m not finding where I could add the attribute “disabled” for the option set with “prompt” key.
Please, how can I transform something like
select :form, :choice, [:white, :black, :gray], prompt: "Choose a color"
to have the attribute “disabled” set on the prompt option ?
In the docs I see I can use with select, options such as :key, :value, :disabled but it does not work for the prompt option.