how to add defult value to the country_select gem.. pls help me
I don't know for sure, but I think you can pass in an option: `:selected => code` where code is the country code.
tamouse m. wrote in post #1139937:
Show your code.
This is on the README page:
Supplying additional html options:
country_select("user", "country", { priority_countries: ["GB", "FR"] }, { selected: "GB", class: 'form-control' })
tamouse m. wrote in post #1141848: