How to list all countries in select using country_select gem with simple_form
问题 I have added gem 'country-select' to my gemfile, and I need to list all countries in a select. I try <%= f.input :country, as: :select %> but countries don't appear. There are no info about that in documentation. Please help me with this issue. 回答1: try this out <%= f.input :country, as: :country %> 来源: https://stackoverflow.com/questions/18302078/how-to-list-all-countries-in-select-using-country-select-gem-with-simple-form