= remote_form_for [@syllabus, @exam_syllabus], url: syllabus_exam_syllabuses_path(@syllabus), method: 'post', label: t(:'exam.singular'), resource: 'existing-exam' do |f| = f.select :exam_id, Gaku::Exam.all.reject {|e| @syllabus.exams.include?(e)}.collect{ |exam| ["#{exam.name}", exam.id]}, {prompt: t('exam.choose')}, {class: 'chzn-select'} = f.hidden_field :syllabus_id, value: @syllabus.id = buttons_for @syllabus, { resource: 'existing-exam', label: t(:'exam.add') }