title: Rails form helper behaving oddly
body: <p>I want to use a couple of radio buttons to control the mode of some page elements. The basic requirements being that it displays to the user which mode is active and fires the appropriate mode switching function when a different button is selected. So i tried the following.</p>
  
  <pre><code>&lt;%= radio_button_tag(:label_type, "tooltip", :checked, :onchange =&gt; 'console.log("tooltip")')%&gt;
  &lt;%= label_tag(:label_type_tooltip, "Enable Tooltip") %&gt;&lt;br /&gt;
  &lt;%= radio_button_tag(:label_type, "labels", :onchange =&gt; 'console.log("labels")') %&gt;
  &lt;%= label_tag(:label_type_labels, "Enable Labels") %&gt;
  </code></pre>
  
  <p>This seems to work without the :onchange parameter passed to the second radio_button_tag, but with it (as shown above) is has the confusing effect of not attaching an onchange event to the second radio button but rather setting the second radio button to checked (which i dont want) like so:</p>
  
  <pre><code>&lt;input checked="checked" id="label_type_tooltip" name="label_type" onchange="console.log(&amp;quot;tooltip&amp;quot;)" type="radio" value="tooltip"&gt;
  &lt;label for="label_type_tooltip"&gt;Enable Tooltip&lt;/label&gt;&lt;br&gt;
  &lt;input checked="checked" id="label_type_labels" name="label_type" type="radio" value="labels"&gt;
  &lt;label for="label_type_labels"&gt;Enable Labels&lt;/label&gt;
  </code></pre>
  
  <p>Why? How do i make it behave?</p>