Not sure if this is intended, but this threw me off a bit especially
being
new to Rails. This applies to both select_tag and select (when tied to
an
object)
=select_tag(‘test’, options_for_select((1…3).to_a), :include_blank =>
“test”)
yields this:
=select_tag(‘test’, options_for_select((1…3).to_a), :prompt => “test”)
gives this
A collection_select however, will give the same result whether it’s
:include_blank or :prompt
=collection_select(:car, :make, Make.all, :id, :name, {:include_blank =>
‘-
Make -’})