Hi,
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
def show
@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
@question.pictures)
I have a join table "pictures_questions" and as I said this was
working
prior to the upgrade.
Any ideas?
Thanks,
Dave
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/369738b846231b48fa7afe15f5d85c48%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.