Definition for collection_check_boxes:
collection_check_boxes(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block)
The last argument allows you to do something like this: (this does exactly what you want to use collection_check_boxes)
<%= f.collection_check_boxes(:dog_ids, Dog.all, :id, :name) do |b| %>
<div class="row">
<%= b.label(class: "check_box") do %>
<div class="col-xs-4">
<%= b.check_box(class: "check_box") %>
</div>
<div class="col-xs-8">
<%= b.object.name %>
</div>
<% end %>
</div>
<% end %>
collection_check_boxes
: css.
css 'checkbox-list' :
<div class="col-md-4 checkbox-list">
<%= f.collection_check_boxes :dog_ids, Dog.all, :id, :name %>
</div>
.checkbox-list input[type="checkbox"] {
display: inline-block;
width: 10%;
}
.checkbox-list input[type="checkbox"] + label {
display: inline-block;
margin-left: 10%;
width: 80%;
}