mbleigh / subdomain-fu

A new plugin approach to attempting to solve the usage of subdomains in linking and routing in Rails projects.
http://rdoc.info/projects/mbleigh/subdomain-fu
Other
586 stars 118 forks source link

Routing a controller only to a subdomain #12

Open mcculloughsean opened 14 years ago

mcculloughsean commented 14 years ago

I've been reading through the source and i still don't understand how to do this. I'm wondering if someone can help me out with this.

I'm launching a mobile version of a site, and i want everything that goes to m.foo.com to be redirected to the m. controller, and then create a namespace and have other controllers under there.

I don't know of a restful way of doing this. It seems like this module wants to create m.foo.com/m, but that's not what i need.

Am i missing something?