title: add class with check_box in rails view
body: <pre><code>&lt;%= f.check_box(:is_active, {checked: (@employee.is_active ? false : true) }, 0, 1) %&gt;
  </code></pre>
  
  <p>but I want to add class inside this how it will be done. </p>
  
  <p>I had tried it like this:</p>
  
  <pre><code>&lt;%= f.check_box(:is_active, {checked: (@employee.is_active ? false : true) }, 0, 1, :class=&gt; 'abcd') %&gt;
  </code></pre>
  
  <p>But it gives me error.Please guide me how to do this.</p>