I have a check box in a non - model based form and when I submit
the form with 'Un Checked' check box the params hash doesn't contain
the check box. Whenever I submit the form with the check box
'Checked', I see the same coming through params hash in my controller.
Since I dynamically generate the form element (Here, check box), if I
don't get anything in the params, there is no way of telling if the
check box is 'unchecked' or there is no check box in the form. Can
someone help me understand what I am missing here and how to force
Rails to include all the form elements in the params hash irrespective
of the user action? I tried asking many people and no one seems to
know the answer. Any help is highly appreciated.