On 8/19/06, Alastair Moore
<alastair-mb+lb5rSoAr10XsdtD+oqA@public.gmane.org>
wrote:>
> Hello all,
>
> Having a bit of a problem with validates_associated. I assume I''m
missing
> something out but basically got these two models -
>
> class Seller < User
>
> has_one :profile, :foreign_key => ''user_id'',
:dependent => :destroy
> has_many :properties
>
> validates_associated :profile
>
> end
>
You also want
validates_presence_of :profile
jeremy
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---