remove outer label of checkbox in ruby
<p>I'm using ruby on my project . I need custom style for check boxes.</p>

<p>please find below code</p>

<pre><code>&lt;%= f.input :category_ids, :as =&gt; :check_boxes do %&gt;
  &lt;%= f.collection_check_boxes :category_ids, Category.order(:name), :id, :name do |b|
    b.label { b.check_box + b.text }
  end %&gt;
&lt;% end %&gt;
</code></pre>

<p>Using above code Im getting out like </p>

<pre><code>&lt;label for="property_space_amenities_space_amenities_2"&gt;
  &lt;input type="checkbox" value="2" name="property[space_amenities][space_amenities][]" id="property_space_amenities_space_amenities_2"&gt;Internet connectivity
&lt;/label&gt;
</code></pre>

<p>form this im not able give custom style for this</p>

<p>i want output like below</p>

<pre><code>&lt;label class="control-label" for="user_login"&gt;Login&lt;/label&gt;
&lt;input class="form-control" id="user_login" name="user[login]" type="text" /&gt;
</code></pre>

<p>Please help me in this</p>