No explanation needed
# https://x.com/y/1?page=1
# current_url( :page => 3 )
# https://x.com/y/1?page=3
# current url also could be found from request.url, but it cannot be changed...
def current_url(overwrite={})
url_for(:only_path => false,:overwrite_params => overwrite)
end

No comments yet
Comments feed for this article