I see.  Thanks, Marnen!

On Fri, Jul 17, 2009 at 12:04 PM, Marnen Laibow-Koser <
[email protected]> wrote:

>
> Learn by Doing wrote:
> > Thanks Marnen!  What do you mean by a non-AR model?
>
> I mean a model class that does not inherit from ActiveRecord.
>
> >  I have users and
> > each
> > user has a spec.  I'd like to do something like this
> >
> > transaction do
> >   user.save!
> >   spec.save!
> > end
>
> Right.  Put that in a method of your new class, then call it from the
> controller.
>
> >
> > Thanks.
> >
>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

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