Last active
September 25, 2015 12:33
-
-
Save austinklenk/8236fedfb554c16a7f7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// application_helper.rb | |
def us_states | |
[ | |
['Alabama', 'AL'], | |
['Alaska', 'AK'], | |
['Arizona', 'AZ'], | |
['Arkansas', 'AR'], | |
['California', 'CA'], | |
['Colorado', 'CO'], | |
['Connecticut', 'CT'], | |
['Delaware', 'DE'], | |
['District of Columbia', 'DC'], | |
['Florida', 'FL'], | |
['Georgia', 'GA'], | |
['Hawaii', 'HI'], | |
['Idaho', 'ID'], | |
['Illinois', 'IL'], | |
['Indiana', 'IN'], | |
['Iowa', 'IA'], | |
['Kansas', 'KS'], | |
['Kentucky', 'KY'], | |
['Louisiana', 'LA'], | |
['Maine', 'ME'], | |
['Maryland', 'MD'], | |
['Massachusetts', 'MA'], | |
['Michigan', 'MI'], | |
['Minnesota', 'MN'], | |
['Mississippi', 'MS'], | |
['Missouri', 'MO'], | |
['Montana', 'MT'], | |
['Nebraska', 'NE'], | |
['Nevada', 'NV'], | |
['New Hampshire', 'NH'], | |
['New Jersey', 'NJ'], | |
['New Mexico', 'NM'], | |
['New York', 'NY'], | |
['North Carolina', 'NC'], | |
['North Dakota', 'ND'], | |
['Ohio', 'OH'], | |
['Oklahoma', 'OK'], | |
['Oregon', 'OR'], | |
['Pennsylvania', 'PA'], | |
['Puerto Rico', 'PR'], | |
['Rhode Island', 'RI'], | |
['South Carolina', 'SC'], | |
['South Dakota', 'SD'], | |
['Tennessee', 'TN'], | |
['Texas', 'TX'], | |
['Utah', 'UT'], | |
['Vermont', 'VT'], | |
['Virginia', 'VA'], | |
['Washington', 'WA'], | |
['West Virginia', 'WV'], | |
['Wisconsin', 'WI'], | |
['Wyoming', 'WY'], | |
['_________________'], | |
[''], | |
['Alberta', 'AB'], | |
['British Columbia', 'BC'], | |
['Manitoba', 'MB'], | |
['New Brunswick', 'NB'], | |
['New Foundland & Labrador', 'NL'], | |
['Nova Scotia', 'NS'], | |
['Northwest Territories', 'NT'], | |
['Nunavut', 'NU'], | |
['Ontario', 'ON'], | |
['Prince Edward Island', 'PE'], | |
['Quebec', 'QC'], | |
['Sackatchewan', 'SK'], | |
['Yukon', 'YT'] | |
] | |
end | |
// View File | |
<%= f.select :state, options_for_select(us_states, :selected => @customer.state), :include_blank => 'Choose State', :style => 'width: 100%', hide_label: true %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment