使用默认- API标记在rails 5中创建了一个新的api,并使用命令devise_token_auth rails generate devise_token_auth:install User auth安装了rails generate devise_token_auth:install User auth。我得到了这个错误undefined method 'devise' for User (call 'User.connection' to establish a conn
我正在使用 gem来验证我的rails应用程序的某些部分。但是,当我尝试使用注册路径创建一个新用户时,它给出了以下错误{"errors":["Authorized users only."]}。it 'creates a user using email/password combo' do
post api_user_registration_path, { email: 'xxx', password: 'yyy',password_confirmation: