I have a Step model and a MasterStep model. In my controller, I use this and there isn’t any assignment that uses MasterStep anywhere.
@step = Step.all(:conditions => {:course_id => params[:id], :current_state => :incomplete}, :order => :id).first
This is my error log. Notice the MasterCourse:
http://pastie.org/2252224
Here is the relevant method:
http://pastie.org/pastes/2252198/text
I can’t figure out how it’s getting a MasterStep object, and in the whole codebase, I can’t find anything that’s assigning @step to a MasterStep object.
How is that even possible?
If @step.master_step is a MasterStep object through your association, it will call that object. Looks like the error is throwing on
Is master_course a method on master_step?