Hey,
I'm normally used to using .htaccess files to force a domain to use www. (i.e. http://www.example.com instead of http://example.com):
#Options +Indexes
RewriteEngine on
RewriteBase /
Redirect permanent "www.example.com" "http://www.example.com"
Redirect permanent "example.com" "http://www.example.com"
However this doesn't work in a rails app. What is the rails alternative to this?