I'd like to generate check box with custom html attributes (to use UJS later). Here is my view code

<%= check_box_tag "data-toggle-completed" => "" %>

it gives me

<input id="__data-toggle-completed______" name="{&quot;data-toggle-completed&quot;=&gt;&quot;&quot;}" type="checkbox" value="1">

But I wanted

  <input type="checkbox" data-toggle-completed="">

How can I achieve this?

Edit
Report