【发布时间】:2015-03-26 21:14:42
【问题描述】:
当我尝试使用 sign_in 或 sign_in_with_redirect 时,我得到的参数数量错误(1 代表 0)。
我们使用的是 rails 4.2、ruby 2.2.0、devise 3.4.1,代码如下:
#find an authentication account
card = Card::Dog.where(id: ##)
#get card associated with the dog account
@user = card.user
#sign in card
sign_in @user
我似乎找不到我做错了什么,因为这一切看起来都很简单。
【问题讨论】:
标签: ruby-on-rails ruby devise