Rodrigo, To do that you just need to add the validation to credit card and partner.
Do you mean that? http://pastie.org/private/o5zyoyqsefzhdsmwg3uoq On Aug 6, 2012, at 11:19 AM, Rodrigo Rosenfeld Rosas wrote: > Em 06-08-2012 10:27, Gabriel Sobrinho escreveu: >> Rodrigo, >> >> I don't get what you mean with nested levels :) > > A company has many partners. A partner has many credit cards. In both cases > you shouldn't have multiple entries (unique restrictions). > > This is what nesting is all about. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" 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-core?hl=en. > Cheers, Gabriel Sobrinho gabrielsobrinho.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en.
