I am building a rails app which supports accounts based on subdomain
names. I want to serve files in public with respect to the subdomain
name. For example:
<img src="images/bar.jpg"> should deliver public/foo/images/bar.jpg.
Is there any way to do this in rails? Or should I use the
Mongrel::HttpHandler and response.send_data?