You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no joining table in this scenario. Just two tables: books and reviews.
If I wanted to grab all reviews and their associated book. I could do something like
Review.joins(:book).select('reviews.*','books.*')
This should return a list of repeated book names with their review.
I assumed I would be able to do something like:
Hi, I'm just getting my head around pg_search and I have a question regarding associations.
Given the following simple setup
There is no joining table in this scenario. Just two tables: books and reviews.
If I wanted to grab all reviews and their associated book. I could do something like
This should return a list of repeated book names with their review.
I assumed I would be able to do something like:
Is that possible? Or have i missed something?
The text was updated successfully, but these errors were encountered: