title: undefined method `merge' for "xxxxxx":String rails form_for
body: <p>I have this form in /new.html.erb:</p>
  
  <pre><code>&lt;%= form_for @vendor, multipart: true do |f| %&gt;
  &lt;%= f.text_field :name, "Store Name" %&gt;
  &lt;%= f.text_field :address, "Store Address" %&gt;
  &lt;%= f.file_field :image %&gt;
  &lt;%= f.submit "Save", class: "btn btn-success" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>and these Vendor methods:</p>
  
  <pre><code>def new
      @vendors = Vendor.all
      @vendor = Vendor.new
  end
  
  def vendor_params
      params.require(:vendor).permit(:id, :name, :latitude, :longitude, :address, :image)
  end
  </code></pre>
  
  <p>When I try to render the page, I get this error:</p>
  
  <pre><code>undefined method `merge' for "Store Name":String
  Extracted source (around line #8):
  
  5: &lt;h4&gt;New Vendor Form&lt;/h4&gt;
  6: 
  7: &lt;%= form_for @vendor, :html =&gt; {:multipart =&gt; true} do |f| %&gt;
  8: &lt;%= f.text_field :name, "Store Name" %&gt;
  9: &lt;%= f.text_field :address, "Store Address" %&gt;
  10: &lt;%= f.file_field :image %&gt;
  11: &lt;%= f.submit "Save", class: "btn btn-success" %&gt;
  </code></pre>
  
  <p>I'm not sure why <code>merge</code> is being called here. Is it in a hidden field possibly? Most of the answers I found pertaining to this error had to do with hidden fields. I'm using Geocoder to geocode lat and long after validation like so (not sure if this is relevant):</p>
  
  <pre><code>class Vendor &lt; ActiveRecord::Base
  
  
      geocoded_by :address
      after_validation :geocode,
          :if =&gt; lambda{ |obj| obj.address_changed? }
  end
  </code></pre>
  
  <p>Any help here is much appreciated! Thanks in advance.</p>