ruby on rails - How i group the result according to 2.degree association in activerecord -


i trying group blog_post related category. category related category_group. there no organic bond between blog_post , category_group.

how can group results?

blog_post  -> category -> category_group   blog_post     category     group text          name         name title         slug_name    slug_name category_id   group_id      

i want blog_post group according category_group. possible or no make sense?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -