Take the tour ×  I'm getting the error "uninitialized constant
Assignment::AssignmentsCourse". Here are my models:   class
Assignment < ActiveRecord::Base     has_many :assignmentsCourses
has_many :courses, :through => :assignmentsCourses
attr_accessible :name, :dateAssigned, :dateDue, :description,
:weight, :category_tokens     attr_reader :category_tokens
def category_tokens=(ids)         puts 'el ids: ',
ids.split(",")         self.courseIds = ids.split(",")   class
Course < ActiveRecord::Base     has_and_belongs_to_many
:assignments   class AssignmentCourse < ActiveRecord::Base
belongs_to :assignment     belongs_to :course
attr_accessible :assignment_id, :course_id share|improve this
question add comment  1 Answer  up vote 3 down vote accepted
has_many :assignmentsCourses  This and all of your fields should
not be camel cased it is not ruby style and it breaks the class
loading. The end should only be pluralized too, not both words.
Behind the scenes activerecord depluralizes the symb