Class: SurveyFormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Defined in:
app/helpers/survey_form_builder.rb

Instance Method Summary collapse

Instance Method Details

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



2
3
4
5
# File 'app/helpers/survey_form_builder.rb', line 2

def survey_check_box(method, options = {}, checked_value = "1", unchecked_value = "0")
  fields = @template.survey_check_box(@object_name, method, options.merge(:object => @object), checked_value, unchecked_value)
  fields[1]
end