Rails 5 form_for with checkbox array
问题 I am using a PostgreSQL database and Rails 5.0.6. I try to build a course allocation WebApp for the school where I am working. For each course the teachers are able to select which forms are allowed to visit the course. Migration file: def up create_table :courses do |t| t.integer :number, null: false t.string :name, null: false t.text :description, null: false t.decimal :level, array: true, default: [] t.integer :max_visitor, null: false t.integer :min_visitor t.integer :pos_visit t