Select_tag and :include_blank => true not working


I’m using select_tag to display a non-model dropdown, which works fine.
However, I’ve tried every which way to use the :include_blank => true
option, but it simply won’t display a blank value. Using :include_blank
=> true with select on model fields works fine.

Can someone please show me a working example?

well, there is no such an attribute for select_tag

you can simply add blank row to the list of values that you produce


Thanks for the info. I did a little more research and came to the same

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs