Is it possible to add an option like :include_blank => 'Please Select'
in a method select_tag
like it is possible with the select
method? It seems not to work. Is there any substitute for this for select_tag
method?
In Rails 3 there is a :prompt
option for select_tag
:
select_tag "things", many_thing_as_options, :prompt => "Please select"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With