Ruby on Rails Thursday, August 15, 2013

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

--
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@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/513c24195c2f024833fc060312e55fd4%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment