def find_from_slug_path(path)
      slug = path.split('/').last
      scope = path[0..(-(slug.size + 1))]
      find_from_slug slug, scope
    end
def find_from_slug_path(path)
      slug = path.split('/').last
      scope = path[0..(-(slug.size + 1))]
      find_from_slug slug, scope
    end
Locates a record from a given path, that consists of a slug and its scope,
 as would appear in a URL path component.

 @param [String] path The scope and slug concatenated together.
 @return [ActiveRecord::Base] The object with that slug.
 @raise [ActiveRecord::RecordNotFound] If no object with that slug is
   found.