module ActiveScaffold::Bridges::CountryHelper::CountryHelpers
Public Instance Methods
country_select(object, method, priority_countries = nil, options = {}, html_options = {})
click to toggle source
Return select and option tags for the given object and method, using country_options_for_select to generate the list of option tags.
# File lib/active_scaffold/bridges/country_helper/country_helper_bridge.rb, line 9 def country_select(object, method, priority_countries = nil, options = {}, html_options = {}) country_select_class.new(object, method, self, options).to_country_select_tag(priority_countries, options, html_options) end
country_select_class()
click to toggle source
# File lib/active_scaffold/bridges/country_helper/country_helper_bridge.rb, line 4 def country_select_class defined?(ActionView::Helpers::InstanceTag) ? ActionView::Helpers::InstanceTag : ActionView::Helpers::Tags::CountrySelect end
usa_state_select(object, method, priority_states = nil, options = {}, html_options = {})
click to toggle source
# File lib/active_scaffold/bridges/country_helper/country_helper_bridge.rb, line 13 def usa_state_select(object, method, priority_states = nil, options = {}, html_options = {}) country_select_class.new(object, method, self, options).to_usa_state_select_tag(priority_states, options, html_options) end