Guys,
Badly i need a help in merb routing in subdomains
In my router.rb file i have placed like this
Merb::Router.prepare do
module Merb
class Request
def first_subdomain
subdomains.first
end
end
end
resources :pages
resources :users
match('/').to(:controller => 'homes')
end
I want to use like "admin.domain.com"
if the subdomain is "admin" it should not go to the above routes
that i have mentioned .
How can i do that?
I am struck with this ?
Please help me ..........
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---