title: rails subclass not found when trying to locate a specific phrase in a db table
body: <p>I'm trying to make a page only show the results in a table that have the word <code>ford</code> inside the <code>type</code> column.</p>
  
  <p>Heres what i have</p>
  
  <p>Controller:</p>
  
  <pre><code>  def type
      @type = Brand.where(type: "ford")
    end
  </code></pre>
  
  <p>And in the view i have:</p>
  
  <pre><code>&lt;% @type.each do |t| %&gt;
  </code></pre>
  
  <p>This is currently returning this error
  on the line above,</p>
  
  <pre><code>The single-table inheritance mechanism failed to locate the subclass: 'ford'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite Brand.inheritance_column to use another column for that information.
  </code></pre>
  
  <p>Why am i getting this error and how do i go about fixing it?</p>
  
  <p>Sam</p>
  
  <p><em>Edit</em></p>
  
  <pre><code>@type = Brand.where(car_type: "ford")
  </code></pre>