Table: RailsNotes
User: dreamable
Created at: 2021-04-29 09:48:54 UTC
Updated at: 2021-04-29 09:48:54 UTC
Reference:(Table ID 3, Record ID 42)

标题 :
Rails collection_select set value for include_blank
笔记 :

source

options = Carmake.all.unshift Carmake.new(id: 0, name: 'Any')
collection_select(:service, :carmake_id, options, :id, :name, include_blank: 'Any')
Tag: