Module: ChinaRegionFu::Helpers::FormHelper

Includes:
Utils
Defined in:
lib/china_region_fu/helpers/helpers.rb

Instance Method Summary collapse

Methods included from Utils

#append_html_class_option, #append_html_data_option, #append_html_options, #append_prompt, #china_region_fu_js

Instance Method Details

#region_select(object, methods, options = {}, html_options = {}) ⇒ Object



14
15
16
# File 'lib/china_region_fu/helpers/helpers.rb', line 14

def region_select(object, methods, options = {}, html_options = {})
  render_region_select_tags(object, methods, ActiveSupport::SafeBuffer.new, options, html_options)
end

#region_select_tag(regions, options = {}) ⇒ Object



10
11
12
# File 'lib/china_region_fu/helpers/helpers.rb', line 10

def region_select_tag(regions, options = {})
  render_region_select_tags(nil, regions, ActiveSupport::SafeBuffer.new, options)
end