Hi there A user can place an ad with various attributes via a form; however, I want the user to check a box signifying that they've read the terms and conditions for use of the site. So the 'terms' is not an attribute of the Advertisement model. I could check that the user has ticked the box in my controller but would like to bundle this up with the validation process. How to ensure that the checkbox is ticked before the ad object is saved as part of the model validation? Any clues appreciated Richard S.
on 2006-06-12 08:18
on 2006-06-12 11:20
Should the terms perhaps be part of the user model -- it could then be part of the user validation (using *validates_acceptance_of)*?
on 2006-06-14 03:06
Ah, validates_acceptance_of !! That works fine and is exactly what I was after. many thanks Richard