Re: Shouldn''t this insert in table?

Frederick Cheung
Wed, 02 Sep 2009 14:44:38 -0000

On Sep 2, 3:20 pm, RVince
<rvinc...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
wrote:
> in MyAController I want to create an instance of MyBModel, and have it
> insert into the table for the MyB models
>
> So, in a function in MyAController, I have
>
> MyB myB = MyB.new
> myB.something = whatever
> myB.save
>
> Shouldn''t that have inserted a new row into the table for MyB
models?

it will if validations didn''t fail.

Fred