I am trying to do the following
map.with_options :conditions => { :domain => XYZ_DOMAIN }, :application
=> 6 do |xyz|
xyz.site "/", :controller => "xyz/site", :action
=> "index"
xyz.resources :things
xyz.connect ":controller/:action/:id", :controller =>
"site",
:action => ":index"
end
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?
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---