Rails - simple_form, include a named blank object in a collection on new and edit Rails - simple_form, include a named blank object in a collection on new and edit ruby-on-rails ruby-on-rails

Rails - simple_form, include a named blank object in a collection on new and edit


You want to use :include_blank, not :prompt

<%= f.association :parent, :collection => @parents, :include_blank => "(select if none)" %>

The documentation