I'm trying to add a HighCharts chart to my Rails app, the content of which will be determined by the selection of radio buttons. My code for the radio buttons is fairly standard and is as follows:
<%= radio_button_tag(:interface, "wlan") %>
<%= label_tag(:interface_wlan, "WLAN") %>
<%= radio_button_tag(:interface, "3g") %>
<%= label_tag(:interface_3g, "3G") %>
I see Rails 3.1 has the "remote => :true" option to make Ajax much simpler. My question is where exactly do I put this option for a series of radio buttons? I tried adding it at the end of the radio_button_tag parameters, but it didn't generate the appropriate HTML.
Alternatively, if there is a simpler way of doing what I want to do I'd be open to that as well.