Mapping for state_name => state_code
Add this line to your application's Gemfile:
gem 'state_helper'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install state_helper
HAML = f.input :state_code, as: :select, collection: StateHelper.us_states, prompt: 'Select...', label: false, class: 'clear input state_input', wrapper_html: { style: 'border:none'}
- Fork it ( http://github.com//state_helper/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request