I think that means is actually recommend against though because :subdomain is an array.
I've done this cool: http://scottmotte.com/archives/187.html Or if you're looking for something for dynamic subdomains I've built a multisite slice at http://github.com/scottmotte/merb-auth-slice-multisite/tree/master On Feb 3, 6:22 am, Stephen Eley <[email protected]> wrote: > On Tue, Feb 3, 2009 at 2:41 AM, cool <[email protected]> wrote: > > > 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 ? > > This one's pretty straightforward. Just put a rule above the other > ones to the effect of: > > match(:subdomain => 'admin').to(:controller => 'admin') do > [any additional route rules within the admin subdomain] > end > > Have Fun, > Steve Eley ([email protected]) > ESCAPE POD - The Science Fiction Podcast Magazine > http://www.escapepod.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
