title: <main>': uninitialized constant ActiveRecord (NameError)
body: <p>I have the following model in my Rails 3.2.13 build. I am trying to use it to insert data into my database.</p>
  
  <pre><code>  class Financials &lt; ActiveRecord::Base
      #attr_accessible :description, :stock
      attr_accessible :symbol, :cur_price
      sym = Financials.new(:symbol =&gt; test, :cur_price =&gt; 10)
      sym.save
  
    end
  </code></pre>
  
  <p>but when I try to run the code I get the following error:</p>
  
  <p>financials.rb:1:in `': uninitialized constant ActiveRecord (NameError)</p>
  
  <p>I checked through SO and found others that had similar errors and they suggested that I add entries in the environment.rb <a href="https://stackoverflow.com/questions/1640408/ruby-on-rails-pluralization-help">ruby on rails pluralization help?</a></p>
  
  <p>I added the following to the environment.rb file:</p>
  
  <pre><code>  Inflector.inflections do |inflect|
        inflect.irregular 'financialss', 'financials'
    end
  </code></pre>
  
  <p>but it did resolve my issue. Thanks in advance</p>