could you do something like
Minisection.find(params[:minisection_id]).questions

@question_list = Minisection.find(params[:minisection_id]).questions


On Thu, Aug 15, 2013 at 11:53 AM, Dave Castellano <[email protected]>wrote:

> 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 [email protected].
> To post to this group, send email to [email protected].
> 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.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAE%2BzMv8C_hzXXH5GQ%3Dx%3DBtJeJXESeJWSK7GosX70TBC9tTH%2BSw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to