Class: ActionView::Helpers::InstanceTag
- Inherits:
-
Object
- Object
- ActionView::Helpers::InstanceTag
- Defined in:
- lib/uncharted/extensions/rails.rb
Instance Method Summary collapse
- #to_country_select_tag(priority_countries, options, html_options) ⇒ Object
- #to_territory_select_tag(priority_territories, options, html_options) ⇒ Object
Instance Method Details
#to_country_select_tag(priority_countries, options, html_options) ⇒ Object
53 54 55 56 57 58 |
# File 'lib/uncharted/extensions/rails.rb', line 53 def to_country_select_tag(priority_countries, , ) = .stringify_keys add_default_name_and_id() value = value(object) content_tag("select", ((value, priority_countries), , value), ) end |
#to_territory_select_tag(priority_territories, options, html_options) ⇒ Object
60 61 62 63 64 65 |
# File 'lib/uncharted/extensions/rails.rb', line 60 def to_territory_select_tag(priority_territories, , ) = .stringify_keys add_default_name_and_id() value = value(object) content_tag("select", ((value, priority_territories), , value), ) end |