I wonder if anyone has any suggestions for solving the following issue.
I just upgraded from rails 3.2.x to 4.0.3
The following was working in 3.2.x
@question = Question.find(params[:id])
session[:question_id] = @question.id
@pictures = @question.pictures
Now however, I get the error:
uninitialized constant Question::Picture (for the line @pictures =
I have a join table “pictures_questions” and as I said this was working
prior to the upgrade.