title: wrong number of arguments (2 for 1) - Rails
body: <p>I am really really stuck and annoyed with this right now. </p>
  
  <p>I am running Rails 2.3.5</p>
  
  <p>My <code>View/pages/customers.html.erb</code> simply has:</p>
  
  <pre><code>&lt;% form_tag do %&gt;
      First Name
          &lt;%= text_field_tag :firstName, params[:firstName] %&gt;
      Last Name
          &lt;%= text_field_tag :lastName, params[:lastName] %&gt;
  
          &lt;%= submit_tag "Enter" %&gt;
  &lt;%end%&gt;
  </code></pre>
  
  <p>My <code>Models/customer.rb</code> simply has:</p>
  
  <pre><code>class Customer &lt; ActiveRecord::Base
      attr_accessible :firstName, :lastName
  end
  </code></pre>
  
  <p>My <code>Controller/pages_controller</code> has</p>
  
  <pre><code>class PagesController &lt; ApplicationController
    def custs
      @cust = Customer.new(params[:firstName], params[:lastName])
      @cust.save
    end
  end
  </code></pre>
  
  <p>so as you see I am just trying to enter two fields from front end and then save them to the DB.  However, whenever i load my page it give me error: </p>
  
  <blockquote>
    <p>wrong number of arguments (2 for 1)
    pages_controller.rb:3:in <code>new'
    pages_controller.rb:3:in</code>custs'</p>
  </blockquote>
  
  <p>weird thing is that when I use the sandbox script/console I am able to insert data fine. </p>
  
  <p>What is going on here? please someone explain!</p>