My form essentially looks like this: <%= form_for :xxx, url: xxxs_path, method: 'get', enforce_utf8:true do |d| %> <%= d.text_field('filter', value: @filter, maxlength:64, size:16) %> <%= d.radio_button(:filtertype, 'regexp') %> <%= d.label :filtertype_regexp, 'Regular Expression', value: 'regexp' %> <%= d.radio_button(:filtertype, 'lefteq', checked:true) %> <%= d.label :filtertype_lefteq, 'Starts with...', value: 'lefteq' %> <%= d.submit(value="FILTER LIST BELOW", name: 'filter') %> <% end %> I thought from this association between radio buttons and label, clicking on *text* (i.e. 'Regular Expression' should already cause the button to be selected, but this is not the case. Did I miss something here? -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fb20194dc119e820ab3d7d624b52dbbb%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.