lib/informant.rb
def radio_buttons(method, choices, options = {})
      choices.map!{ |i| i.is_a?(Array) ? i : [i] }
      build_shell(method, options, "radio_buttons_field") do
        choices.map{ |c| radio_button method, c[1], :label => c[0],
          :label_for => [object_name, method, c[1].to_s.downcase].join('_') }
      end
    end
def radio_buttons(method, choices, options = {})
      choices.map!{ |i| i.is_a?(Array) ? i : [i] }
      build_shell(method, options, "radio_buttons_field") do
        choices.map{ |c| radio_button method, c[1], :label => c[0],
          :label_for => [object_name, method, c[1].to_s.downcase].join('_') }
      end
    end
Render a set of radio buttons. Takes a method name, an array of
 choices (just like a +select+ field), and an Informant options hash.