Skip to content

Instantly share code, notes, and snippets.

@kamal
Created March 13, 2009 23:55
Show Gist options
  • Save kamal/78836 to your computer and use it in GitHub Desktop.
Save kamal/78836 to your computer and use it in GitHub Desktop.
http://example.com/shares/new?v=1 <--- WTF???
https://secure.example.com/shares/new?v=1
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