小编Ale*_*dra的帖子

Rails 3:控制台中的Authlogic出错

我正在尝试在控制台中创建一些用户.我收到以下错误:

Authlogic::Session::Activation::NotActivatedError: You must activate the Authlogic::Session::Base.controller with a controller object before creating object
Run Code Online (Sandbox Code Playgroud)

after_create中发生此错误,只有作业是向用户发送电子邮件.如果我禁用此after_create,一切正常,但这意味着没有发送电子邮件.

我尝试应用此处找到的解决方案,但它不起作用:

http://www.tatvartha.com/2009/09/working-with-authlogic-in-scriptconsole/

这是怎么回事?

谢谢

authlogic ruby-on-rails-3

5
推荐指数
0
解决办法
198
查看次数

标签 统计

authlogic ×1

ruby-on-rails-3 ×1