app/helpers/application_helper.rb
# radio button selection
# top of args is pair of value and its label
radio button selection
top of args is pair of value and its label
radio button selection top of args is pair of value and its label
def radio_button_selection(form, method, *args)
    options = args.last.is_a?(Hash) ? args.pop : {}
    args.inject("") do |sum, pair|
      sum += form.radio_button(method, pair.first, options) + form.label(method + "_" + pair.first.to_s, pair.last) + "  "
    end    
  end
def radio_button_selection ( form , method , * args ) options = args . last . is_a? ( Hash ) ? args . pop : { } args . inject ( "" ) do | sum , pair | sum += form . radio_button ( method , pair . first , options ) + form . label ( method + "_" + pair . first . to_s , pair . last ) + "  " end end
radio button selection
top of args is pair of value and its label
radio button selection top of args is pair of value and its label
form
<not_specific>
method
<not_specific>
args
<not_specific>