Adding in the redirect logic to the rails routes file