On Sep 2, 3:20 pm, RVince <[email protected]> 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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---