def match(path, *rest) puts path.inspect puts rest.inspect end a=[:inspect] match(*a, {:via => :get})