module ActiveScaffold::Bridges class UsaStateSelect module UsaStateSelectHelpers def usa_state_select_options(options) # TODO: remove when rails 3.2 support is dropped defined?(ActionView::Helpers::InstanceTag) ? options[:object] : options end def usa_state_select(object, method, priority_states = nil, options = {}, html_options = {}) ActionView::Helpers::Tags::UsaStateSelect.new(object, method, self, usa_state_select_options(options)).to_usa_state_select_tag(priority_states, options, html_options) end end module UsaStateSelectOptionsHelpers # Returns a string of option tags for the states in the United States. Supply a state name as +selected to # have it marked as the selected option tag. Included also is the option to set a couple of +priority_states+ # in case you want to highligh a local area # NOTE: Only the option tags are returned from this method, wrap it in a