Thanks. My code looks more like yours now, using new instead of create. But save_person is not needed, in my case at least, the person gets saved automatically and as far as I know, all callbacks and the saving are wrapped in a transaction by Rails automatically.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/J_1znmqJZvgJ. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.