title: Displaying countries using country_select gem in Rails 4
body: <p>I am trying to implement the country_select gem (gem 'country_select','~> 2.1.0') in a Rails 4 app without success. This is the code in my form. I have tried several permutations of this from similar questions on stack without success. I don't understand why I am getting the error - </p>
  
  <p>"undefined method `input' for ActionView::Helpers::FormBuilder:0x007fafb5878c48>"</p>
  
  <p>Bear in mind that I am a Rails beginner. </p>
  
  <pre><code>    &lt;%= form_for(@user, html: { multipart: true }) do |f| %&gt;
  
      &lt;%= f.label :country %&gt;&lt;br&gt;
      &lt;%= f.input :country, as: :country %&gt;
  
      &lt;%= f.submit "Update my account", class: "btn btn-primary" %&gt;
      &lt;% end %&gt;
  </code></pre>
  
  <p>I have also tried </p>
  
  <pre><code>    &lt;%= f.label :country %&gt;
      &lt;%= f.country_select :country  %&gt;
  </code></pre>
  
  <p>from the documentation. 'country' is one of my user attributes. </p>
  
  <p>Any guidance would be welcome on the newbie problem. </p>