Displaying 1 result from an estimated 1 matches for "questions_pictures".
2013 Apr 24
3
join table naming
...w(params[:picture])
…
if @picture.save
@question.pictures << @picture
Everything works fine but honestly I think I got this working by sheer
luck and trial and error. I have 2 questions:
1. I do not understand the difference between naming the join table
pictures_questions vs questions_pictures (ie how to decide which to use)
2. I do not understand the “.pictures” in @question.pictures - is it
an attribute of @question because of the join table?
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby o...