我目前在注册 devise 时遇到错误。当我在注册表单上按提交时,我被重定向到 /users 并出现以下错误:
Devise::RegistrationsController#create stack level too deep中的 SystemStackError
Rails.root:/Users/user/Desktop/Programming/Rails/Site
要求
参数:
{"utf8"=>"✓",
"authenticity_token"=>"VTOUFUYrYxUD0sJpdCz5Mpn6Dvyf7CVqUjj5oDSIqf8=",
"user"=>{"email"=>"example@gmail.com",
"password"=>"[FILTERED]",
"password_confirmation"=>"[FILTERED]"},
"commit"=>"Sign up"}
我读过其他人有类似的问题,但他们的解决方案都没有奏效。这是我尝试过的:运行迁移,并检查 routes.rb 中的无限递归
宝石:
gem 'pg'
gem 'forem', :github => "radar/forem", :branch => "rails4"
gem 'forem-bootstrap', :github => "radar/forem-bootstrap", :branch => "master"
gem 'devise', '3.0.0'
gem 'kaminari'
gem 'friendly_id', github: "FriendlyId/friendly_id"
gem 'cancan'
gem "therubyracer"
gem "less-rails"
gem "twitter-bootstrap-rails"
gem 'twitter-bootstrap-rails'
gem 'rails_12factor', group: :production