Hi all,
I would like to route a request to a specific domain
(''request_routing'' plugin installed) to controllers living in
a
subfolder for that domain like this:
http://www.mydomain.com/home/index
:controller => ''mydomain/home'', :action =>
''index''
I would like to use a general route like
''/:controller/:action''
Is it possible to somehow access the string matched by :controller,
extend it and use the extended string as the controller, like the
following?
# mydomain routes
map.with_options :requirements => { :domain => /^mydomain/ } do |
mydomain|
mydomain.connect '':controller/:action'', :controller =>
"mydomain/
#{controller_match}"
end
Thanks for any hint!
Ingo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---