Module: ActionView::Helpers::FormHelper

Defined in:
app/helpers/survey_form_builder.rb

Instance Method Summary collapse

Instance Method Details

#survey_check_box(object_name, method, options = {}, checked_value = "1", unchecked_value = "0") ⇒ Object



11
12
13
14
15
16
17
# File 'app/helpers/survey_form_builder.rb', line 11

def survey_check_box(object_name, method, options = {}, checked_value = "1", unchecked_value = "0")
  if (Rails::VERSION::STRING.to_f > 2.1)
    InstanceTag.new(object_name, method, self, options.delete(:object)).to_survey_check_box_tag(options, checked_value, unchecked_value)
  else
    InstanceTag.new(object_name, method, self, nil, options.delete(:object)).to_survey_check_box_tag(options, checked_value, unchecked_value)
  end
end