app/models/devise_token_auth/concerns/user.rb
# NOTE: ensure that fragment comes AFTER querystring for proper $location
# parsing using AngularJS.
ensure that fragment comes AFTER querystring for proper $location
parsing using AngularJS.
ensure that fragment comes AFTER querystring for proper $location parsing using AngularJS .
def generate_url(url, params = {})
    uri = URI(url)
    res = "#{uri.scheme}://#{uri.host}"
    res += ":#{uri.port}" if (uri.port and uri.port != 80 and uri.port != 443)
    res += "#{uri.path}" if uri.path
    res += '#'
    res += "#{uri.fragment}" if uri.fragment
    res += "?#{params.to_query}"
    return res
  end
def generate_url ( url , params = { } ) uri = URI ( url ) res = "#{uri.scheme}://#{uri.host}" res += ":#{uri.port}" if ( uri . port and uri . port != 80 and uri . port != 443 ) res += "#{uri.path}" if uri . path res += '#' res += "#{uri.fragment}" if uri . fragment res += "?#{params.to_query}" return res end
NOTE: ensure that fragment comes AFTER querystring for proper $location
parsing using AngularJS.
NOTE : ensure that fragment comes AFTER querystring for proper $location parsing using AngularJS .
url
<not_specific>
params
<not_specific>