You can use regexp without route params, that's what I did in some of the specs to handle any query parameter.