Module: ChineseRegionsRails::Helper
- Defined in:
- lib/chinese_regions_rails/helper.rb
Instance Method Summary collapse
Instance Method Details
#city_picker_tag(name, value = nil, options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/chinese_regions_rails/helper.rb', line 5 def city_picker_tag(name, value = nil, = {}) HelperUtil.() _raw_label = HelperUtil.raw_label(value) _raw_value = HelperUtil.raw_value(value) output = ActiveSupport::SafeBuffer.new output << text_field_tag(nil, _raw_label, ) output << hidden_field_tag(name, _raw_value, { data: { "city-picker-value-for" => [:data][:id] } }) end |