Thanks Marnen! What do you mean by a non-AR model? I have users and each user has a spec. I'd like to do something like this
transaction do user.save! spec.save! end Thanks. On Fri, Jul 17, 2009 at 11:53 AM, Marnen Laibow-Koser < [email protected]> wrote: > > Learn by Doing wrote: > > Thanks, Sijo. That works. > > > > I would like to move this logic down to the model level but I can't > > because the transaction involves different models. Any suggestions? > > Thanks. > > Create a non-AR model to handle the transaction dispatch. Sijo is quite > right that this does not belong in the controller. > > 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 -~----------~----~----~----~------~----~------~--~---

