{"id":22683712,"url":"https://github.com/andregoncalves/country-select-code","last_synced_at":"2025-03-29T14:41:32.275Z","repository":{"id":10227617,"uuid":"12327803","full_name":"andregoncalves/country-select-code","owner":"andregoncalves","description":"This is a variation of the country-select Rails plugin, uses country codes instead","archived":false,"fork":false,"pushed_at":"2013-08-29T16:03:30.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T00:51:30.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andregoncalves.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-23T16:46:52.000Z","updated_at":"2014-02-10T12:34:02.000Z","dependencies_parsed_at":"2022-08-31T08:01:28.243Z","dependency_job_id":null,"html_url":"https://github.com/andregoncalves/country-select-code","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andregoncalves%2Fcountry-select-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andregoncalves%2Fcountry-select-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andregoncalves%2Fcountry-select-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andregoncalves%2Fcountry-select-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andregoncalves","download_url":"https://codeload.github.com/andregoncalves/country-select-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246200301,"owners_count":20739563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T21:13:12.992Z","updated_at":"2025-03-29T14:41:32.246Z","avatar_url":"https://github.com/andregoncalves.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Country-Select-Code\n\nProvides a simple helper to get an HTML select list of countries.\nOptionally, you can store the country code instead of the full country name.\nCompatible with Rails 4.\n\nCode adapted from Rails' +country_select+ plugin (previously in core)\nSee https://github.com/jamesds/country-select\n\nThe list of countries comes from the ISO 3166 standard.  While it is a relatively neutral source of country names, it may still offend some users.\nUsers are strongly advised to evaluate the suitability of this list given their user base.\n\n## Latest Changes\n\n**1.0.0**\n\n- Initial version\n\n## Installation\n\nInstall as a gem using\n\n    gem install country-select-code\n\nOr put the following in your Gemfile\n\n    gem 'country-select-code'\n\n## Example\n\nSimple use supplying model and attribute as parameters:\n\n    country_select_code(\"user\", \"country_name\")\n\nSupplying priority countries to be placed at the top of the list:\n\n    country_select_code(\"user\", \"country_name\", [ \"United Kingdom\", \"France\", \"Germany\" ])\n\nStoring just the country code\n\n    country_select_code(\"user\", \"country_name\", nil, :with_country_code =\u003e true)\n\nSupplying priority countries with country code parameter\n\n    country_select_code(\"user\", \"country_name\", [[\"United Kingdom\", \"GB\"], [\"France\", \"FR\"], [\"Germany\", \"DE\"]], :with_country_code =\u003e true)\n\n## Version History\n\n - **1.0.0** - Initial version\n\nCopyright (c) 2013 Andre Goncalves, released under the MIT license","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandregoncalves%2Fcountry-select-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandregoncalves%2Fcountry-select-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandregoncalves%2Fcountry-select-code/lists"}