Skip to content

Instantly share code, notes, and snippets.

@wknechtel
wknechtel / world.rb
Created June 8, 2012 16:57
Ruby World Class with a country array useful for automagically building a country select with form builder.
# Useful for building a rails FormBuilder country select...
#
# For Example:
# `<%= select my_billing_address_object, billing_country, World::COUNTRIES, {:include_blank => true}, {:class => 'my_class_name'} %>`
class World
COUNTRIES = [
[ "AFGHANISTAN", "AF" ],
[ "ÅLAND ISLANDS", "AX" ],
[ "ALBANIA", "AL" ],