Hi,
I created a join table and am having trouble figuring out how to query
it…
create_table “minisections_questions”, :id => false, :force => true do
|t|
t.integer “minisection_id”
t.integer “question_id”
end
I am trying to find all question id’s with a specific minisection_id eg
(params[:minisection_id])
@question_list = ???
ANy guidance would be helpful as I really am having trouble figuring
this out.
Thanks
Dave
could you do something like
Minisection.find(params[:minisection_id]).questions
@question_list = Minisection.find(params[:minisection_id]).questions
Dave C. wrote in post #1118800:
Hi,
I created a join table and am having trouble figuring out how to query
it…
Thank you!
Dave
John Davalos wrote in post #1118812:
worked? if so, you’re welcome!
Yep! Worked well, and helped me understand the concept. so thanks…
worked? if so, you’re welcome!