checkbox tag in rails code example
Example: checkbox tag in rails
<%= form_tag(medication_select_path, method: 'put', :id => 'medication-select') do %>
<% @medications.each do |medication| %>
<%= check_box_tag "medications[]", medication.id -%>
<% end %>
<% end %>