Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 732
Andrey Yasinishyn Avatar asked Feb 15 '23 13:02

Andrey Yasinishyn


1 Answers

try this out

<%= f.input :country, as: :country %>
like image 69
Sachin Singh Avatar answered May 01 '23 15:05

Sachin Singh