Friday, September 2, 2011

Re: [Rails] Need help with radio buttons.. Never seen this before

On Fri, Sep 2, 2011 at 2:29 PM, Bob Smith <bsm2th@gmail.com> wrote:

> What I want to do is to have a list of radio buttons, each pointing to
> that person's hoh field with only one in the list selected at a time.
> I will set a name in the household model based on the value found in
> the person model
>
> Can't find a way to do this with different variables referenced in the
> radio_button call.

So generate the radio button set using a common "name" attribute.

Have you read the radio_button doc? What part isn't clear?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment