Class: ActionView::Helpers::InstanceTag
- Inherits:
-
Object
- Object
- ActionView::Helpers::InstanceTag
- Defined in:
- lib/carmen/action_view_helpers.rb
Instance Method Summary collapse
- #to_country_select_tag(priority_countries, options, html_options) ⇒ Object
- #to_state_select_tag(country, options, html_options) ⇒ Object
Instance Method Details
#to_country_select_tag(priority_countries, options, html_options) ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/carmen/action_view_helpers.rb', line 42 def to_country_select_tag(priority_countries, , ) = .stringify_keys add_default_name_and_id() value = value(object) opts = ((value, priority_countries, ), , value) content_tag("select", opts, ) end |
#to_state_select_tag(country, options, html_options) ⇒ Object
50 51 52 53 54 55 56 |
# File 'lib/carmen/action_view_helpers.rb', line 50 def to_state_select_tag(country, , ) = .stringify_keys add_default_name_and_id() value = value(object) opts = ((value, country), , value) content_tag("select", opts, ) end |