Passing Params to Resources via Routes

I am trying to do the following

map.with_options :conditions => { :domain => XYZ_DOMAIN }, :application
=> 6 do |xyz| “/”, :controller => “xyz/site”, :action => “index”
xyz.resources :things
xyz.connect “:controller/:action/:id”, :controller => “site”,
:action => “:index”

I assign the :application parameter in the map.with_options, this is
passed to all map.connect style routes, but it will not pass to a
resource. I attempted to do

xyz.resources :things, :application => 6

but no luck.

How can I pass a param based on the route to a resource?