Added :from_collection and :from_resource helpers