Make nested resources work with CanCan

CanCan does not work with nested resources because you are passing resources to CanCan as an array and not as a hash. This pull request should fix the issue.