Getting Rails URL helpers to automatically output https urls August 15, 2023 by Tarik Use test_url(:protocol => 'https') for https urls.