Recognize path inside a helper

Hi Folks, I need to get a hash of params from an url path inside a
helper.
The way I’ve been doing this was through recognize_path in RouteSet
but now throw me an Exception: MethodNotAllowed(I think beacuse the
path is an “admin” path?)
There is another way?

thanks