Form level validation involving enforcing a relation between two or more form inputs that may not even be in the model:
I am building a form that will query a range of records between two dates. The form ask for a starting data and a ending date. I want to validate that the user selected a starting data before or equal to the ending date. It seems that this validation should happen in the controller, rather than in the model. If it should happen in the model, what would be an example? ( a more complex, but maybe idea way would be to do the validation for this in javascript in the client browser?) Or if it makes since in the controller, how do I do validation in the controller? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

