Answers for "creating a checkbox in a rails form"

0

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 %>
Posted by: Guest on June-03-2021

Code answers related to "creating a checkbox in a rails form"

Browse Popular Code Answers by Language