Country field generates a Select field on Edit view that includes all ISO 3166-1 countries. The value stored in the database will be the country code, and the value displayed in Avo will be the name of the country.
You must manually require the
countries gem in your
# All sorts of useful information about every country packaged as convenient little country objects. gem "countries"
field :country, as: :country, display_code: true
You can easily choose to display the
code of the country on Index and Show views by declaring