2009/9/2 RVince <[email protected]>:
>
> 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?

Test the return value from save to see if it succeeded.  Look in the
log (log/development.log) to see if any errors there.

Colin

>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to