0

我在 ruby​​ 1.8.7 上使用 rails 3.2,我正在升级到 1.9.3 我的第一个问题是我从 devise sign_in 函数和 sign_out 中得到错误

当我调用注销(销毁)时,我收到以下消息:

Accounts::SessionsController#destroy 中的类型错误

并且:

错误的参数类型符号(预期字符串)

我的会话控制器当然是空的:

class Accounts::SessionsController < Devise::SessionsController
  def new
    redirect_to root_url
  end

  protected

  def after_sign_in_path_for(resource)
    root_url
  end
end

它会是什么?..请指教,谢谢。

编辑:设计和omniauth宝石即时使用:

# authentication
gem 'devise', '2.2.3'
gem 'devise-encryptable', '0.1.1'

# oauth authentication
gem 'omniauth', '1.1.3'
gem 'omniauth-facebook', '1.4.1'
gem 'omniauth-twitter', '0.0.14'
gem 'omniauth-openid', '1.0.1'
4

0 回答 0