Class: ActionView::Helpers::InstanceTag

Inherits:
Object
  • Object
show all
Defined in:
lib/english_county_select.rb

Instance Method Summary collapse

Instance Method Details

#to_english_county_select_tag(priority_counties, options, html_options) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
# File 'lib/english_county_select.rb', line 30

def to_english_county_select_tag(priority_counties, options, html_options)
  html_options = html_options.stringify_keys
  add_default_name_and_id(html_options)
  value = value(object)
  ("select",
    add_options(
      english_county_options_for_select(value, priority_counties),
      options, value
    ), html_options
  )
end