<%= question.title%> <%= form_for question, url: answer_survey_question_path do |f| %> <%= f.check_box :selected, {as: :check_boxes, collection: question.choices, label: false}, ["1"] %> <%= f.action :submit, :as => :input %> <% end %>