What's the best way to work with double plurals in Rails? I've got a few has_and_belongs_to_many
relationships, and I want something like:
@templates = current_user.brands.templates
But the closest I can do is something like this:
current_user.brands.each do |b|
@templates = b.templates
end
Any thoughts?