[Rails] Re: associate hidden field with another field in a form

2010-04-19 Thread Me
You could just wrap the capital's in a partial then put that in a hidden tag. On Apr 19, 2:10 am, Ze Ca wrote: > In my form I have a select menu for US States. I would like to include > the capitals of those states as a hidden parameter when passed to the > model. Of course, the capital should ma

Re: [Rails] Re: associate hidden field with another field in a form

2010-04-19 Thread Colin Law
On 19 April 2010 15:32, Ze Ca wrote: > Sharagoz wrote: >> If you know the states name, then you automatically know the capitals >> name, dont you? >> So then it wouldnt be necessary to submit the capital name as a hidden >> field, as you can retrieve it through the state object. >> Or am I missund

[Rails] Re: associate hidden field with another field in a form

2010-04-19 Thread Ze Ca
Sharagoz wrote: > If you know the states name, then you automatically know the capitals > name, dont you? > So then it wouldnt be necessary to submit the capital name as a hidden > field, as you can retrieve it through the state object. > Or am I missunderstanding something? Hi Sharagoz, Thanks f

[Rails] Re: associate hidden field with another field in a form

2010-04-19 Thread Sharagoz
If you know the states name, then you automatically know the capitals name, dont you? So then it wouldnt be necessary to submit the capital name as a hidden field, as you can retrieve it through the state object. Or am I missunderstanding something? On Apr 19, 3:40 pm, Ze Ca wrote: > Colin Law wr

[Rails] Re: associate hidden field with another field in a form

2010-04-19 Thread Ze Ca
Colin Law wrote: > On 19 April 2010 08:10, Ze Ca wrote: >> In my form I have a select menu for US States. I would like to include >> the capitals of those states as a hidden parameter when passed to the >> model. Of course, the capital should match the state chosen. > > I don't understand exactly