IonDen/ion.checkRadio — pull request #11 by climber2002 (2014-08-17 08:06:57+00:00)
Title: Make it compatible with Rails form builder

Make the rendered form compatible with Rails form builder, when Rails render a checkbox:

````````

<%= f.check_box :remember_me %>
<%= Spree.t(:remember_me) %>

````````

it will put a hidden input before the checkbox, like

````````

Remember me

````````

So if the user didn't check the checkbox, it will send the hidden '0' to the server. The order of the hidden and checkbox inputs
must be preserved. If we call

````````
$input.appendTo($container);
$label.appendTo($container);
````````

The hidden input will be after the checkbox, then when the server receives the params, the value will always be 0. So remove the line

````````
$input.appendTo($container);
````````

to preserve the order of these two inputs.