Ruby on rails 简单表单国家/地区选择显示为html实体

Ruby on rails 简单表单国家/地区选择显示为html实体,ruby-on-rails,simple-form,country,Ruby On Rails,Simple Form,Country,在某个时候,我的表单开始显示html实体,而不是国家/地区选择的html: 哈默: = a.input :country Html 国家* 选项值=“阿富汗”阿富汗/选项 option value=“Aland Islands”Aland Islands/option option value=“阿尔巴尼亚”selected=“selected”阿尔巴尼亚/option 结果证明我需要使用国家/地区选择gem 你能提供更多的信息吗?您的代码是否有版本控制? <div class="i

在某个时候,我的表单开始显示html实体,而不是国家/地区选择的html:

哈默:

= a.input :country
Html

国家*
选项值=“阿富汗”阿富汗/选项
option value=“Aland Islands”Aland Islands/option
option value=“阿尔巴尼亚”selected=“selected”阿尔巴尼亚/option

结果证明我需要使用国家/地区选择gem

你能提供更多的信息吗?您的代码是否有版本控制?
  <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>
                          &lt;option value=&quot;Afghanistan&quot;&gt;Afghanistan&lt;/option&gt;
                          &lt;option value=&quot;Aland Islands&quot;&gt;Aland Islands&lt;/option&gt;
                          &lt;option value=&quot;Albania&quot; selected=&quot;selected&quot;&gt;Albania&lt;/option&gt;