map.resources :queries, :member => {:myfunction => :get}
should do just fine, additional parameters don't affect the routing
In my app I have:
map.resources :cdocs, :member => {:linkable => :get}
for one resource, and the linkable invocations take additional parameters. Remember parameters come after the ? and don't affect the routing.