See if a resource responds to 'each' instead of 'size' as things other than collections can respond to 'size' (e.g. File instance)
See if a resource responds to 'each' instead of 'size' as things other than collections can respond to 'size' (e.g. File instance)