I have two models:
Post:
class Post < ActiveRecord::Base 
    has_many :exes
end
Exe:
class Exe < ActiveRecord::Base
    belongs_to :post
end
What I am getting in my view on http://localhost:3000/posts/index is:
NameError in Posts#index
uninitialized constant Post::Ex
It says just Ex for some reason. 
The code of line ruby is complaining on is <% post.exes.each do |exe| %> which looks right to me.
So I don't really know why this is happening. If have also checked the following as i thought this might be the reason but no:
2.0.0-p247 :004 > ActiveSupport::Inflector.pluralize('Exe')
 => "Exes" 
2.0.0-p247 :005 > ActiveSupport::Inflector.singularize('Exe')
 => "Exe" 
Thanks in advance!