[Rails] Re: validation and update

Michael Gorsuch
Mon, 13 Mar 2006 16:28:59 -0000

What about *validates_associated?

*If that doesn''t work, maybe your controller logic can perform a
"valild?"
call on your Person object...?

On 3/13/06, Peter Michaux <petermichaux@gmail.com>
wrote:
>
> Hi,
>
> I''ve been trying to figure this out but no luck.
>
> I looked in the activerecord source at the save, create and update
> functions. In the case of create, I don''t see how activerecord
knows
> to implicitly run a transaction with the parent and child tables. I
> don''t see any calls down to the child models. I''m glad
that
> activerecord does this but I was hoping to see hwere update differs
> from create.
>
> Any ideas?
>
> Peter
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...