title: Rails: Expected.. To Define Account_number
body: <p>I have a rails project and keep getting the following error when trying to load my new.html.erb page:</p>
  
  <pre><code>Expected /usr/local/www/apache22/data/update_pi_names/app/models/account_number.rb to define Account_number
  </code></pre>
  
  <p>Heres my def new in the controller:</p>
  
  <pre><code> def new
      @pi_name = PiName.new
      @account_numbers = Account_number.find_all
      respond_to do |format|
        format.html # new.html.erb
        format.xml  { render :xml =&gt; @pi_name }
      end
    end
  </code></pre>
  
  <p>And my model/account_number.rb:</p>
  
  <pre><code>class AccountNumber &lt; ActiveRecord::Base
          has_and_belongs_to_many :pi_names
  
  
  end
  </code></pre>
  
  <p>Let me know if you need any more info!</p>