title: Wrong number of Arguments error in collection_select
body: <p>I have a form ;</p>
  
  <pre><code>&lt;%= form_for @boats do |f| %&gt;
  
  &lt;%= f.collection_select(:brand, :brand_id,  @brands,  :id, :name, {:prompt   =&gt; "Select a Brand"}, {:id =&gt; 'brands_select'}) %&gt;
  
  &lt;%= f.collection_select(:year, :year_id, @years, :id, :name, {:prompt   =&gt; "Select a Year"}, {:id =&gt; 'years_select'}) %&gt;
  
  &lt;%= f.collection_select(:model, :model_id, @models, :id, :name, {:prompt   =&gt; "Select a Model"}, {:id =&gt; 'models_select'}) %&gt;
  &lt;%= f.submit "Create my account" %&gt;
  
      &lt;% end %&gt; 
  </code></pre>
  
  <p>and have controller #index;</p>
  
  <pre><code>def index
      @boats = Boat.new
      @brands  = Brand.all
      @years = Year.all
      @models   = Model.all
    end
  </code></pre>
  
  <p>But the problem here is that, when I run the code it gives an error of;
  <img src="https://i.stack.imgur.com/kIP8M.png" alt="enter image description here"></p>
  
  <p>So I am not sure what to do. Basically, the data comes from the databases and I would like to save them to Boat database where the column names are Brand, Year and Model.</p>