ruby on rails - simple form country select showing as html entities -


at point form started showing html entities instead of html 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>                           &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; 

turns out needed use country_select gem.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -