Thank you, got it working. On Tuesday, September 16, 2014 1:27:27 PM UTC-4, Vivek Sampara wrote: > > Please look into this > http://apidock.com/rails/ActiveRecord/QueryMethods/includes > > On Tue, Sep 16, 2014 at 10:52 PM, frocco <[email protected] <javascript:>> > wrote: > >> Hello, >> >> I have a products table that is related to category. >> >> category has many products. >> >> How do I query the products to also include the category? >> >> Once I do this, how to I show the category data in my template? >> >> Thanks >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/ef128a6d-5b7b-412f-b8ca-db77ccbff2c2%40googlegroups.com >> >> <https://groups.google.com/d/msgid/rubyonrails-talk/ef128a6d-5b7b-412f-b8ca-db77ccbff2c2%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > >
-- 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/e3eb5c8d-a4ca-4944-8d87-d54c13f458c4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

