Hi
Why does a failed “validates_acceptance_of” create a hidden input in
the view?
cheers, jason
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]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs