[Rails] Re: Any way to use a radio button attached to record id during a create

2012-01-16 Thread Bob Smith
On Jan 16, 12:55 pm, Walter Lee Davis wrote: > On Jan 16, 2012, at 12:09 AM, Bob Smith wrote: > > > > > > > > > > > > > On Dec 25 2011, 12:32 am, Walter Lee Davis wrote: > >> On Dec 25, 2011, at 12:15 AM, Bob Smith wrote: > > >>> On Dec 24, 1:18 pm, Walter Lee Davis wrote: > >>> Use an :after_cr

Re: [Rails] Re: Any way to use a radio button attached to record id during a create

2012-01-16 Thread Walter Lee Davis
On Jan 16, 2012, at 12:09 AM, Bob Smith wrote: > > On Dec 25 2011, 12:32 am, Walter Lee Davis wrote: >> On Dec 25, 2011, at 12:15 AM, Bob Smith wrote: >> >> >> >> >> >>> On Dec 24, 1:18 pm, Walter Lee Davis wrote: >>> Use an :after_create callback in those cases; you will have the ID at >

[Rails] Re: Any way to use a radio button attached to record id during a create

2012-01-15 Thread Bob Smith
On Jan 16, 12:09 am, Bob Smith wrote: > On Dec 25 2011, 12:32 am, Walter Lee Davis wrote: > > > > > On Dec 25, 2011, at 12:15 AM, Bob Smith wrote: > > > > On Dec 24, 1:18 pm, Walter Lee Davis wrote: > > > Use an :after_create callback in those cases; you will have the ID at > > > that point an

[Rails] Re: Any way to use a radio button attached to record id during a create

2012-01-15 Thread Bob Smith
On Dec 25 2011, 12:32 am, Walter Lee Davis wrote: > On Dec 25, 2011, at 12:15 AM, Bob Smith wrote: > > > > > > > On Dec 24, 1:18 pm, Walter Lee Davis wrote: > > Use an :after_create callback in those cases; you will have the ID at > > that point and you can use it. Remember, you will need to set

Re: [Rails] Re: Any way to use a radio button attached to record id during a create

2011-12-24 Thread Walter Lee Davis
On Dec 25, 2011, at 12:15 AM, Bob Smith wrote: > > > On Dec 24, 1:18 pm, Walter Lee Davis wrote: > Use an :after_create callback in those cases; you will have the ID at > that point and you can use it. Remember, you will need to set any > relationship keys directly, not at the object level, si

[Rails] Re: Any way to use a radio button attached to record id during a create

2011-12-24 Thread Bob Smith
On Dec 24, 1:18 pm, Walter Lee Davis wrote: Use an :after_create callback in those cases; you will have the ID at that point and you can use it. Remember, you will need to set any relationship keys directly, not at the object level, since you can't call save again in an after_create (I don't thi

Re: [Rails] Re: Any way to use a radio button attached to record id during a create

2011-12-24 Thread Walter Lee Davis
On Dec 24, 2011, at 2:18 AM, Bob Smith wrote: > On Dec 20, 3:53 am, Colin Law wrote: >> On 20 December 2011 07:03, Bob Smith wrote: >> >>> I'm doing a list of family members, each with aradiobutton for head >>> of household. After the household record and the records for each >>> person are cr

Re: [Rails] Re: Any way to use a radio button attached to record id during a create

2011-12-24 Thread Colin Law
On 24 December 2011 07:18, Bob Smith wrote: > On Dec 20, 3:53 am, Colin Law wrote: >> On 20 December 2011 07:03, Bob Smith wrote: >> >> > I'm doing a list of family members, each with aradiobutton for head >> > of household. After the household record and the records for each >> > person are cre

[Rails] Re: Any way to use a radio button attached to record id during a create

2011-12-23 Thread Bob Smith
On Dec 20, 3:53 am, Colin Law wrote: > On 20 December 2011 07:03, Bob Smith wrote: > > > I'm doing a list of family members, each with aradiobutton for head > > of household. After the household record and the records for each > > person are created, it is easy to set the hoh field to the person