Module: Kaui::UsStatesHelper

Defined in:
app/helpers/kaui/us_states_helper.rb

Instance Method Summary collapse

Instance Method Details

#get_U_S_statesObject


4
5
6
7
8
9
# File 'app/helpers/kaui/us_states_helper.rb', line 4

def get_U_S_states
    us_states_yaml_file = File.join(File.dirname(__FILE__), 'us_states_helper.yml')
    states = YAML::load_file(us_states_yaml_file)

    states.map { |state| [state[:state_name],state[:abbreviation]]}
end