There was an error while loading. Please reload this page.
To scope the collection returned in the index action, follow this pattern:
controller do def scoped_collection end_of_association_chain.scoped_by_something end end
for a CanCan example see Enforce CanCan constraints