title: My rails console shows the same model twice - uninitialized constant error
body: <p>I have a model named <code>pictures.rb</code> aka Picture class which should map to pictures table but in rails console it gets displayed twice?</p>
  
  <pre><code>irb(main):013:0&gt; @models = ActiveRecord::Base.subclasses.collect { |type| type.name }.sort
  =&gt; ["Picture", "Picture"]
  </code></pre>
  
  <p>I am trying to use Picture class aka picture.rb model in my ControlPanelController index function</p>
  
  <p>so when I load my index page I get the following error</p>
  
  <pre><code>uninitialized constant ControlPanelController::Picture
  
  
    def index
      @pictures = Picture.all
    end
  </code></pre>
  
  <p>I am guessing it might be because that Picture model shows up twice in rails console? Not sure.</p>