Hello everyone, in my model I have amongst other fields, the :variant_id and :cart_id, I want to validate their presences but in my app the user only needs to set one of them, so I can't make it validates_presence_of :variant_id, :cart_id.
I am sure there's a solution for that, please tell me if you know! Thanks! -- 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.

