backend/app/models/user.rb
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 += "#{uri.fragment}" if uri.fragment
    res += "?#{params.to_query}"

    return res
  end
# There's a bug in devise_token_auth gem that adds a # before the query string
# hence not allowing angular to see the search params.
# https://github.com/lynndylanhurley/ng-token-auth/issues/112
# TODO(mkhatib): Drop this when it is fixed.
There's a bug in devise_token_auth gem that adds a # before the query string
hence not allowing angular to see the search params.
There ' s a bug in devise_token_auth gem that adds a # before the query string hence not allowing angular to see the search params .
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 += "#{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 += "#{uri.fragment}" if uri . fragment res += "?#{params.to_query}" return res end
There's a bug in devise_token_auth gem that adds a # before the query string
hence not allowing angular to see the search params.
There ' s a bug in devise_token_auth gem that adds a # before the query string hence not allowing angular to see the search params .
url
params