title: NameError truncates model name
body: <p>I seem to have an issue with Rails conventions (I think).  I have the following classes that give me a NameError and the error looks like 
      'uninitialized constant Store::Campu' (I didn't misspell Campus it shows up like this in the error page)</p>
  
  <h2>Models</h2>
  
  <pre><code>Store (store.rb)
   has_many :campus
  
  Campus (campus.rb)
    belongs_to :store
  </code></pre>
  
  <p>To display all stores at the index page I have the following index action which works fine.</p>
  
  <pre><code>def index
    @stores = Store.all
  end
  </code></pre>
  
  <p>Then to allow the user to do something like navigate to a create file page.</p>
  
  <pre><code>def create_import_file
    @stores = Store.find_by params[:id]
    render 'create_file'
  
  end
  </code></pre>
  
  <p>I have no idea what I a missing with this error. Thanks for looking any help you can provide.</p>
  
  <h1><strong>Update</strong></h1>
  
  <pre><code> Store (store.rb)
     has_many :campuses
    validates :store_id, presence: true, uniqueness: true, numericality: { only_integer: true } (adding this for good measure. This is everything from my model classes so far)
  Campus (campus.rb)
    self.table_name = "campuses" (Note: I couldn't get this to work without adding this entry.)
    belongs_to :store
  </code></pre>
  
  <p>I have two tables so far. stores &amp; campuses The columns are like so:</p>
  
  <h2>Tables</h2>
  
  <pre><code>stores
    + id
    + store_id
    + created_at
    + updated_at
  campuses
    + id
    + campus_id
    + campus_name
    + created_at
    + updated_at
  </code></pre>
  
  <h1>Solution</h1>
  
  <h3>That worked for me</h3>
  
  <p>Turns out that Rails had issues with pluralizing "campus". Being new I had no idea what was going on. Adding a line to my config/initializers/inflections.rb fixed this.</p>
  
  <p>Using this now everything can just be named 'campus'.</p>
  
  <pre><code>ActiveSupport::Inflector.inflections(:en) do |inflect|   
    inflect.uncountable "campus"
  end
  </code></pre>