In the Rails docs, the first two listed options for the select
helper are :include_blank
and :prompt
. I've just realized that I'm using both in my code, but they seem to be interchangeable. Can anyone explain the difference? It's not clear to me from reading the docs.
Main difference is:
include_blank: true
will render a blank option but
prompt: true
will execute
I18n.translate('helpers.select.prompt', :default => '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