I've got a checkbox like this:
<input type="checkbox" name="serialized_components" value="1" class="form-control" data-toggle="toggle" data-style="ios" data-on="Yes" data-off="No" data-onstyle="success" data-offstyle="default">
If this is checked, it results in "null" in my controller. If I remove the data- attributes, it works. Any ideas what's happening?