def load_enclosing_resources
      namespace_segments.each {|segment| update_name_prefix("#{segment}_") }
      specifications.each_with_index do |spec, idx|
        case spec
          when '*' then load_wildcards_from(idx)
          when /^\?(.*)/ then load_wildcard($1)
          else load_enclosing_resource_from_specification(spec)
        end
      end
    end
def load_enclosing_resources
      namespace_segments.each {|segment| update_name_prefix("#{segment}_") }
      specifications.each_with_index do |spec, idx|
        case spec
          when '*' then load_wildcards_from(idx)
          when /^\?(.*)/ then load_wildcard($1)
          else load_enclosing_resource_from_specification(spec)
        end
      end
    end
this is the before_action that loads all specified and wildcard resources