Andrey Yasinishyn
Andrey Yasinishyn

Reputation: 1861

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.

Upvotes: 5

Views: 4275

Answers (1)

Sachin Singh
Sachin Singh

Reputation: 7225

try this out

<%= f.input :country, as: :country %>

Upvotes: 9

Related Questions