Class: ActionView::Helpers::FormBuilder
- Inherits:
-
Object
- Object
- ActionView::Helpers::FormBuilder
- Defined in:
- lib/carmen/action_view_helpers.rb
Instance Method Summary collapse
- #country_select(method, priority_countries = nil, options = {}, html_options = {}) ⇒ Object
- #state_select(method, country_code = Carmen.default_country, options = {}, html_options = {}) ⇒ Object
Instance Method Details
#country_select(method, priority_countries = nil, options = {}, html_options = {}) ⇒ Object
60 61 62 |
# File 'lib/carmen/action_view_helpers.rb', line 60 def country_select(method, priority_countries = nil, = {}, = {}) @template.country_select(@object_name, method, priority_countries, .merge(:object => @object), ) end |
#state_select(method, country_code = Carmen.default_country, options = {}, html_options = {}) ⇒ Object
63 64 65 |
# File 'lib/carmen/action_view_helpers.rb', line 63 def state_select(method, country_code = Carmen.default_country, = {}, = {}) @template.state_select(@object_name, method, country_code, .merge(:object => @object), ) end |