Marko Anastasov
2009-Feb-17 14:27 UTC
AutosaveAssociation - Saving nested models without validation
Hi, I''m using Rails 2.3 RC1. I''ve noticed that calling save(false) on the model which accepts_nested_attributes_for :another doesn''t create the nested model if it''s invalid. It does save it if it''s been previously created though. Is this known? If necessary I can prepare a minimal example. Marko --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Marko Anastasov
2009-Feb-19 10:48 UTC
Re: AutosaveAssociation - Saving nested models without validation
For the record, I''ve reported a bug with a failing test case on http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2013-autosave-associations-dont-create-nested-models-without-validation Marko On Feb 17, 3:27 pm, Marko Anastasov <marko.anasta...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > I''m using Rails 2.3 RC1. I''ve noticed that calling save(false) on the > model which > accepts_nested_attributes_for :another doesn''t create the nested model > if > it''s invalid. It does save it if it''s been previously created though. > Is this known? If necessary I can prepare a minimal example. > > Marko--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---