include_blank true for type

This commit is contained in:
Rishabh Singh 2019-08-25 23:44:05 +05:30
parent d6478abcf9
commit 13cc541f69

View file

@ -13,7 +13,7 @@
= f.input :booth_type_id, as: :select,
collection: conference.program.booth_types.map {|type| ["#{type.title}", type.id]},
include_blank: false, label: 'Type', input_html: { class: 'select-help-toggle' } if conference.program.booth_types.any?
include_blank: 'Please select a type ...', label: 'Type', input_html: { class: 'select-help-toggle' } if conference.program.booth_types.any?
- conference.program.booth_types.each do |booth_type|
%span{ class: 'help-block select-help-text booth_booth_type_id collapse', id: "#{booth_type.id}-help" }