文字列がありますhttp://someUrul.com/someController/SOmeAction?SomeQS=http://someOtherUrlとしましょう
最初の http をhttpsに置き換えたいのですが、2 番目の http は置き換えたくないので、最終的にはhttps://someUrul.com/someController/SOmeAction?SomeQS=http://someOtherUrlになります。
シンプルなgsubでこれを達成するにはどうすればよいですか? 以下は両方を置き換えます。
request.url.gsub(/http:/, "https:")