[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Colin Law
2009/8/31 Kart akramwasim1...@gmail.com: hi all,         i have a parent by namr consultancy I want to create more than 1 child models for analready existing consultancy which has some extra feilds Do you mean that you have Consultancy has_many :children and you now want to change the

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Kart
Hi Colin, Yes, Consultancy has_many :children but what i want to do is creating many childrens in the same form for an already existing consultancy. plz help me in this regard On Aug 31, 1:56 pm, Colin Law clan...@googlemail.com wrote: 2009/8/31 Kart akramwasim1...@gmail.com: hi all,

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Colin Law
2009/8/31 Kart akramwasim1...@gmail.com: Hi Colin, Yes, Consultancy has_many :children but what i want to do is creating many childrens in the same form for an already existing consultancy. You want to look at Nested Forms I think. The rails guide Getting Started (I presume you have

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Kart
thanks Colin but The children is a single model(single DB table) and what i want to do is create multiple instance of children from a single form with validation for the child fields but the normal new and create method doesn't provide for creating multiple innstance of a model in single form

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Colin Law
2009/8/31 Kart akramwasim1...@gmail.com: thanks Colin but The children is a single model(single DB table) and what i want to do is create multiple instance of children from a single form with validation for the child fields That is what Nested Forms do. See section 9 in the getting

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Abhinav Saxena
You can see Railscasts #73, #74, #75 which deals with the same problem. Also searching on any search engine will also help. -- Thanks, Abhinav http://twitter.com/abhinav On Mon, Aug 31, 2009 at 2:46 PM, Kart akramwasim1...@gmail.com wrote: Hi Colin, Yes, Consultancy has_many :children

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Kart
Thanks a lot Colin .. On Aug 31, 2:54 pm, Colin Law clan...@googlemail.com wrote: 2009/8/31 Kart akramwasim1...@gmail.com: thanks Colin but The children is a single model(single DB table) and what i want to do is create multiple instance of children from a single form with

[Rails] Re: creating more than 1 child for an already existing parent

2009-08-31 Thread Kart
thanks a lot colin On Aug 31, 2:54 pm, Colin Law clan...@googlemail.com wrote: 2009/8/31 Kart akramwasim1...@gmail.com: thanks Colin but The children is a single model(single DB table) and what i want to do is create multiple instance of children from a single form with validation