> Why bother with the radio buttons?
>
> If there's something in the text field use it; otherwise use the value
> from
> the select. (You'll want to check that at least one has a value anyway.)

Is it possible to check it in view or only in controller after 
submitting the form??

This one is only populating :place param from the last :place field

= form_for @meeting do |f|
  ...
  .field
    = f.label :place
    = f.text_field :place
  .field
    = f.label :place
    = f.select  :place, options_for_select(Meeting.places, 
params[:place])
  .field
    = f.label :total_places
    = f.text_field :total_places
  .actions
    = f.submit 'Save'


I'm newbie and haven't seen similar form in books.

Other idea is to populate text from select box into text_field - how 
about that??

-- 
Posted via http://www.ruby-forum.com/.

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

Reply via email to