Class: ActionView::Helpers::InstanceTag
- Inherits:
-
Object
- Object
- ActionView::Helpers::InstanceTag
- Defined in:
- lib/country-select-iso.rb
Instance Method Summary collapse
- #to_country_select_tag(options, html_options) ⇒ Object
- #to_state_select_tag(options, html_options) ⇒ Object
Instance Method Details
#to_country_select_tag(options, html_options) ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/country-select-iso.rb', line 54 def to_country_select_tag(, ) = .stringify_keys add_default_name_and_id() value = value(object) content_tag("select", ( (value, ).html_safe, , value ), ) end |
#to_state_select_tag(options, html_options) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/country-select-iso.rb', line 66 def to_state_select_tag(, ) = .stringify_keys add_default_name_and_id() value = value(object) content_tag("select", ( (value, ).html_safe, , value ), ) end |