Jian Lin wrote: > Save and destroy are automatically wrapped in a transaction > > so i think create is also invoking a save...
i just read from Learning Rails the book (p.50 if remembered correctly) that create is 3 operations in one: it has a new, an assignment of values, and a save, so create involves a save, and therefore is in a transaction by itself. -- 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 -~----------~----~----~----~------~----~------~--~---

