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="{"data-toggle-completed"=>""}" type="checkbox" value="1">
But I wanted
<input type="checkbox" data-toggle-completed="">
How can I achieve this?