Skip to content

collection_check_boxes not working with class:"paper-check" #1

@s-mooches

Description

@s-mooches

Howdy, I was playing around with PaperCSS on rails and ran into an issue with the collection_check_boxes not rendering the check box when the class "paper-check" is applied to a label builder.

    <%= form.collection_check_boxes :category_ids, Category.all, :id, :name do |b| %>
        <div class="col-4">
          <%= b.label  class:"paper-check" do %>
            <%= b.check_box data: { checkbox_select_all_target: "checkbox" } %>
            <%= b.text %>
          <% end %>
        </div>
      <% end %>

When I wrote out the html without the form builder object it displayed the check box in style just fine.
Have you run into this problem before or know a fix?

-Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions