delegate to detail check if it is a resource
moved resources method to resource.rb
resources method is part of resource.rb