I was able to create a has_and_belongs_to_many relationship for my app,
but now I’m not too sure how to write queries for it.
Basically, I have a table ‘courses’ that has_and_belongs_to_many
‘categories’ and vice versa
So I’m trying to figure out how I would find only the courses that
belong to a category that I specify.
Let’s say the category is ‘math’ and the categories are in a column
Any help would be great.