I'm using rails 2.3.4, which, when you call .check\_box on the 'f' object in a form\_for, makes a visible checkbox input for the 'checked' value, and a hidden checkbox input for the 'unchecked' value: <http://railsbrain.com/api/rails-2.3.2/doc/index.html?a=M002434&name=check_box>

The problem with this is that i have a validates\_acceptance\_of validation on the check\_box, and if it's not checked, i'm getting a field\_with\_errors div wrapped around the visible checkbox AND the hidden checkbox, so that the error message appears twice.

In this instance i don't want a value passed through in the 'unchecked' case, so i don't want rails to add the hidden checkbox - this (switching off the hidden checkbox) would solve my problem. I can't figure out how to tell it to not add the hidden checkbox though. Can anyone tell me?

I know that i could get round this by making a check\_box\_tag, which doesn't add the hidden 'unchecked' case checkbox, but then i don't get field\_with\_errors stuff wrapped around the checkbox if it's not checked. Dispensing with the hidden field seems like the cleanest solution.

Thanks - max