Q: Rails 3 - Set table_name_prefix based on subdomain I currently have a model named Post which is currently using the default table name of posts. I am looking to change this so that it will use the subdomain as a prefix to the default, so essentially set it at the start of each page request.
The table_name_prefix looks like it will allow me to do this easily, however I need to find a way to make request.subdomain available to the class. Does anyone have any suggestions on the best way to do this?
Thanks,
Scott
