I''ve got a problem with saving 2 dependent models in one form (one needs other''s id). Can anybody help? Details: http://railsforum.com/viewtopic.php?id=17859 --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-May-03 14:16 UTC
Re: Saving 2 dependent models in one form (one needs other''s ID)
On 3 May 2008, at 14:14, [s] wrote:> I''ve got a problem with saving 2 dependent models in one form (one > needs other''s id). > Can anybody help? > Details: http://railsforum.com/viewtopic.php?id=17859Don''t call your model transaction. An association called transaction will override a built in rails method which is used when saving a record. Fred --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Roger Pack
2008-May-05 04:37 UTC
Re: Saving 2 dependent models in one form (one needs other''s ID)
maybe use a dummy interemediate value then ''really'' save them [?] On Sat, May 3, 2008 at 7:14 AM, [s] <radek.s-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''ve got a problem with saving 2 dependent models in one form (one needs > other''s id). > Can anybody help? > Details: http://railsforum.com/viewtopic.php?id=17859 > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---