Created
March 13, 2009 23:55
-
-
Save kamal/78836 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://example.com/shares/new?v=1 <--- WTF??? | |
https://secure.example.com/shares/new?v=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FooController < ApplicationController | |
def show | |
logger.info new_share_url(params.slice(:v).merge(:protocol => "https", :host => "secure.example.com")) | |
logger.info new_share_url(:v => params[:v], :protocol => "https", :host => "secure.example.com") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment