Module: VisitCard::Helpers::VcardsHelper::InstanceTag

Defined in:
lib/visit_card/helpers/vcards_helper.rb

Instance Method Summary collapse

Instance Method Details

#to_check_box_collection_check_box_tag(name, value, checked, options) ⇒ Object



52
53
54
55
56
# File 'lib/visit_card/helpers/vcards_helper.rb', line 52

def to_check_box_collection_check_box_tag(name, value, checked, options)
  options[:id] ||= name.dup << value.to_s
  options[:id] = sanitize_to_id(options[:id])
  check_box_tag name, value, checked, options
end