I'm hosting a Rails app on Heroku, using the Zerigo DNS. I've added both www.mydomain.com and http://mydomain.com.
My question is this: what is the best way to add a redirect so that http://mydomain.com redirects to www.mydomain.com? Would it be better to add the redirect on Zerigo? Or write some code in Rails to do the redirecting?
Any thoughts are much appreciated.