module IntlTelInput::Helper
Public Instance Methods
intl_tel_input_options(options, html_options)
click to toggle source
# File lib/intl-tel-input/helper.rb, line 3 def intl_tel_input_options(options, html_options) html_options.deep_merge({ :data => { :"intl-tel-input" => options.to_json } }) end
intl_tel_input_tag(name, value = nil, options = {}, html_options = {})
click to toggle source
# File lib/intl-tel-input/helper.rb, line 11 def intl_tel_input_tag(name, value = nil, options = {}, html_options = {}) telephone_field_tag(name, value, intl_tel_input_options(options, html_options)) end