What ended up happening was that my DNS provider didn't allow ALIAS and CNAME changes so I put the below code in my application helper
before_action :redirect_to_www if Rails.env == "production"
def redirect_to_www
unless /www\.jamesdong\.com/ =~ request.url
uri = URI.parse(request.url)
uri.host = "www.jamesdong.com"
redirect_to uri.to_s
end
end