Turns out I needed to use the country_select gem.
simple form country select showing as html entities
-
24-06-2022 - |
Domanda
At some point my form started showing html entities instead of html for the country select:
Haml:
= a.input :country
Html
<div class="input country required"><label class="country required" for="user_account_address_attributes_country">Country <abbr title="required">*</abbr></label><select class="country required" id="user_account_address_attributes_country" name="user[account_address_attributes][country]"><option value=""></option>
<option value="Afghanistan">Afghanistan</option>
<option value="Aland Islands">Aland Islands</option>
<option value="Albania" selected="selected">Albania</option>
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow