I use the simple_form pearl, I have a collection of countries, it works fine when I select a country, and the updated record will have a country identifier, but when I try to edit the record, the selected country is not selected by default in the editing form.
Here is the code in the edit form:
= f.input :country_id, :collection => all_countries
Should simple_form view the selected country from db?
ruby-on-rails ruby-on-rails-3 simple-form
simo 02 Feb 2018-12-12T00: 00Z
source share