This maybe of some help:

http://railscasts.com/episodes/41-conditional-validations

Cheers,
Nicholas

On Jul 28, 10:15 pm, Me <[email protected]> wrote:
> If I have a site model that has_many :equipments, how would I validate
> the equipment only when ceratin conditions exist in the site model?
>
> I add the equipment dynamically in the Site form and also the form
> will not necessarily be "fully submitted" until some conditions exist
> in the main site form.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to