Validates_acceptance_of (and hidden input)

Hi

Why does a failed “validates_acceptance_of” create a hidden input in
the view?

cheers, jason

Jason B. wrote:

Hi

Why does a failed “validates_acceptance_of” create a hidden input in
the view?

cheers, jason

They don’t!

You need to show your code so we can see what you did wrong!

actually, yes i think they do… check_box has the habit of making a
hidden input to represent the ‘unchecked’ value. not sure why, maybe
it’s necessary to the rails internals, but the absence of the field
from params should be enough IMO to know it’s not checked.

On Aug 21, 2:25 pm, Jamal S. [email protected]