Add rails redirect alternative, rack middleware