I think this should be fairly easy but I\'m not familiar with how it\'s done...
How do you write a before filter that would check if the current request is for certa
An even simpler option without the need to do a string sub or specify the controller or action would be to use
redirect_to url_for(subdomain: 'www', only_path: false)