Publisher review:Filtering based on a has_and_belongs_to_many association - To create an indexed view of either all of the items (in a normal index view), or filtered based on an association, you can do the following. To create an indexed view of either all of the items (in a normal index view), or filtered based on an association, you can do the following.
For example, if you have a many to many relationship between "users" and "tags", and you wish an index view of users filtered on whether they contain a particular tag, you can do the following.
Filtering based on a has_and_belongs_to_many assoc is a Ruby script for Snippets scripts design by blackrat.
It runs on following operating system: Windows / Linux.
Operating system:Windows / Linux