Forum: Ruby on Rails routes mapping, subdomains and page-caching

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Roberto S. (Guest)
on 2006-03-25 23:01
(Received via mailing list)
Each of its own is no problem, but the combination of them is confusing
head !

I want to to map in routes.rb an url for an article which is identified
its permalink. The permalink is unique per subdomain.

Has anybody done that and can post an example ?

Should I do subdomain filtering in routes.rb so I can get page-cachabled
URLs (and URL rewriting in  Lighttpd form subdomain-urls to
URLs as defined in routes.rb) ??

Or does there exist a better way to achive that, without additional URL
rewriting at webserver ?
Dan W. (Guest)
on 2006-03-26 17:29
(Received via mailing list)

I've been playing with different ways of doing the same thing.  I'm
pretty sure theres nothing in Rails that can specifically help you
with this.

I've been trying to get lighty to rewrite URLs but it seems that this
doesn't work because Rails get the original URL rather than the
rewritten one so if you come up with anything that works please let me



On 3/25/06, Roberto S. <removed_email_address@domain.invalid> wrote:
> URLs as defined in routes.rb) ??

Dan W.
This topic is locked and can not be replied to.