blairanderson
11/17/2016 - 4:26 AM

rails nested checkboxes - the label wraps a checkbox, the label has the same name as the checkbox. the actual label of text should be a line

rails nested checkboxes - the label wraps a checkbox, the label has the same name as the checkbox. the actual label of text should be a line beneath the checkbox input

<%= form.label :reject_some_setting, class: "checkbox-inline"  do %>
  <% = form.check_box :reject_some_setting %>
  <span class='inline-label'>
    <%= t("form.user.reject_some_setting") %>
  </span>
<% end %>
= form.label :reject_some_setting, class: "checkbox-inline"  do
  = form.check_box :reject_some_setting
  %span.inline-label= t("form.user.reject_some_setting")