But wouldn't your suggestion that defeat the purpose of using
accepts_nested_attributes_for - where when someone submits a form with
associations, it saves attributes on associated records through the
parent by calling Parent.create, for example in the controller
responding to the form request

On Aug 1, 10:41 am, Dave Aronson <[email protected]>
wrote:
> On Wed, Aug 1, 2012 at 12:09 AM, John Merlino <[email protected]> wrote:
> > this will
> > raise an error, because project_id does not exist yet, since the
> > project has not been saved yet.
>
> Can you create the project first, saving it before you allow the user
> to even try to add tasks?
>
> -Dave
>
> --
>  Dave Aronson, Cleared/Remote Ruby on Rails Freelancer
> (NoVa/DC/Remote); seewww.DaveAronson.com, and blogs 
> atwww.Codosaur.us,www.Dare2XL.com,www.RecruitingRants.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 https://groups.google.com/groups/opt_out.


Reply via email to