Module: Baddr::TagHelper
- Defined in:
- app/helpers/baddr/tag_helper.rb
Instance Method Summary collapse
Instance Method Details
#baddr_city_tag(name, options = {}) ⇒ Object
9 10 11 12 |
# File 'app/helpers/baddr/tag_helper.rb', line 9 def baddr_city_tag(name, ={}) [:class] = (.with_indifferent_access[:class].presence || []) << 'baddr-cities' select_tag name, '', end |
#baddr_state_tag(name, options = {}) ⇒ Object
3 4 5 6 7 8 |
# File 'app/helpers/baddr/tag_helper.rb', line 3 def baddr_state_tag(name, ={}) @states = State.all = @states, 'code', 'name' [:class] = (.with_indifferent_access[:class].presence || []) << 'baddr-states' select_tag name, , end |