Ruby on rails 在Rails上改变url的设计

Ruby on rails 在Rails上改变url的设计,ruby-on-rails,angularjs,http,url,devise,Ruby On Rails,Angularjs,Http,Url,Devise,这是我有史以来第一个堆栈溢出问题,因为谷歌通常会对我进行排序。然而,我似乎在网上找不到任何复制我的问题的人 我正在使用该模块,当我尝试使用以下URL登录时 test.aam.tunnel.logicsaas development.com:3000/users/sign_in.json $http或设计对其进行更改 这是我的配置代码: AuthInterceptProvider.interceptAuth(true); AuthProvider.loginPath('test.aam.tun

这是我有史以来第一个堆栈溢出问题,因为谷歌通常会对我进行排序。然而,我似乎在网上找不到任何复制我的问题的人

我正在使用该模块,当我尝试使用以下URL登录时

test.aam.tunnel.logicsaas development.com:3000/users/sign_in.json

$http或设计对其进行更改

这是我的配置代码:

AuthInterceptProvider.interceptAuth(true);

AuthProvider.loginPath('test.aam.tunnel.logicsaas-development.com:3000/users/sign_in.json');
AuthProvider.loginMethod('POST');
AuthProvider.resourceName('users');
和我的登录电话:

var credentials = {
    email: 'user@domain.com',
    password: 'password1'
};

Auth.login(credentials).then(function(user) {
    console.log(user); // => {id: 1, ect: '...'}
}, function(error) {
    console.log(error)
    // Authentication failed...
});

我深入研究了Desive,我99%确信这是在$http上发生的。如果您有任何帮助,我们将不胜感激。

也许您必须通过以下方式更改主机配置:

.config(函数(AuthProvider){
AuthProvider.baseUrl(“http://test.aam.tunnel.logicsaas-development.com:3000");
})