I don't think you could do all of this with the standard nested_attributes on the book model, you'd need to write your own setter method. Ultimately you're going to be creating an authoring_role object, and either finding an existing author or creating a new author, and the same for the role. So, if the authoring_role model has nested_attributes that let you set role and author data, then you could call that when you create it. I've not done much with nested_attributes myself though. -- 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 rubyonrails-t...@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.