How to list all countries in a selection using country_select gem with simple_form

I added gem 'country-select' to my gemfile and I need to list all countries in the list. I try <%= f.input :country, as: :select %> , but countries are not displayed. This is not in the documentation. Please help me in this matter.

+4
ruby ruby-on-rails simple-form
source share
1 answer

try it

 <%= f.input :country, as: :country %> 
+8
source share

All Articles