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
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,
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
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
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
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
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
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
8 matches
Mail list logo