{"action":"created","issue":{"url":"https://api.github.com/repos/stefanpenner/country_select/issues/154","repository_url":"https://api.github.com/repos/stefanpenner/country_select","labels_url":"https://api.github.com/repos/stefanpenner/country_select/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/stefanpenner/country_select/issues/154/comments","events_url":"https://api.github.com/repos/stefanpenner/country_select/issues/154/events","html_url":"https://github.com/stefanpenner/country_select/issues/154","id":348580293,"node_id":"MDU6SXNzdWUzNDg1ODAyOTM=","number":154,"title":"Collection along with priority not working for country_select v3.1.1","user":{"login":"meenakshikumari","id":9154721,"node_id":"MDQ6VXNlcjkxNTQ3MjE=","avatar_url":"https://avatars0.githubusercontent.com/u/9154721?v=4","gravatar_id":"","url":"https://api.github.com/users/meenakshikumari","html_url":"https://github.com/meenakshikumari","followers_url":"https://api.github.com/users/meenakshikumari/followers","following_url":"https://api.github.com/users/meenakshikumari/following{/other_user}","gists_url":"https://api.github.com/users/meenakshikumari/gists{/gist_id}","starred_url":"https://api.github.com/users/meenakshikumari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meenakshikumari/subscriptions","organizations_url":"https://api.github.com/users/meenakshikumari/orgs","repos_url":"https://api.github.com/users/meenakshikumari/repos","events_url":"https://api.github.com/users/meenakshikumari/events{/privacy}","received_events_url":"https://api.github.com/users/meenakshikumari/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-08T05:29:22Z","updated_at":"2018-08-13T14:12:49Z","closed_at":"2018-08-09T22:15:44Z","author_association":"NONE","body":"I have upgraded versions of:\r\nrails from 4.1.10 to 5.2.0 \r\nruby from 2.1.0 to 2.5.1\r\ncountry-select from 1.2.0 to 3.1.1\r\ndatabase from mongodb to postgres.\r\n\r\nIn my previous code, a simple form drop down containing collections `VALID_COUNTRIES = CountrySelect::COUNTRIES_FOR_SELECT.collect(&:titleize)` of countries with priority given to Australia and New Zealand.\r\nPrevious code: `a.input :country, input_html: { id: \"country_#{a.object.type.underscore.gsub(' ', '_')}\" }, priority: [\"\", \"Australia\", \"New Zealand\" ]`\r\n\r\n Now in my upgraded code this code didn't worked (because of country select gem update). Now i'm using collections `VALID_COUNTRIES = ISO3166::Country.all.collect(&:name).sort` only countries are displayed in sorted order, but priority are not working."},"comment":{"url":"https://api.github.com/repos/stefanpenner/country_select/issues/comments/412532197","html_url":"https://github.com/stefanpenner/country_select/issues/154#issuecomment-412532197","issue_url":"https://api.github.com/repos/stefanpenner/country_select/issues/154","id":412532197,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjUzMjE5Nw==","user":{"login":"scudco","id":3806,"node_id":"MDQ6VXNlcjM4MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/3806?v=4","gravatar_id":"","url":"https://api.github.com/users/scudco","html_url":"https://github.com/scudco","followers_url":"https://api.github.com/users/scudco/followers","following_url":"https://api.github.com/users/scudco/following{/other_user}","gists_url":"https://api.github.com/users/scudco/gists{/gist_id}","starred_url":"https://api.github.com/users/scudco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scudco/subscriptions","organizations_url":"https://api.github.com/users/scudco/orgs","repos_url":"https://api.github.com/users/scudco/repos","events_url":"https://api.github.com/users/scudco/events{/privacy}","received_events_url":"https://api.github.com/users/scudco/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T14:12:49Z","updated_at":"2018-08-13T14:12:49Z","author_association":"COLLABORATOR","body":"Priority Countries using country names in `simple_form` was removed in 3.0, but you you can still specify the priority of a `simple_form` country select. See: https://github.com/scudco/country_select_test/blob/master/app/views/welcome/_simple_form_form.html.erb#L8 and http://country-select-test.herokuapp.com\r\n\r\nThe most important change from 1.x to 2.x is switching from country names to country codes. You'll need to migrate your data to use country codes if you want to use country_select 2+."}}
{"actor":{"display_login":"scudco"}}