【问题标题】:Rails 3 Authlogic acts_as_authentic undefinedRails 3 Authlogicacts_as_authentic undefined
【发布时间】:2011-04-06 07:45:27
【问题描述】:

我收到一个错误,即未为 rails 3、ruby 1.9.2 定义acts_as_authentic

我的 Gemfile 有:gem 'authlogic'

命令“bundle show authlogic”显示了安装authlogic的正确路径

我的acts_as_authentic 出现在控制器中:

class User < ActiveRecord::Base
  acts_as_authentic do |c|
    c.login_field = :phone
  end
end

如果还有什么可以帮助的,请告诉我,我是 Rails 新手,所以我不完全确定要发布什么。

谢谢

【问题讨论】:

    标签: ruby-on-rails ruby-on-rails-3 authlogic


    【解决方案1】:

    出于某种原因,我总是在弄清楚之前就在 StackOverflow 上提问。我需要重新启动 Rails 服务器才能让它工作。

    【讨论】:

      猜你喜欢
      • 2013-08-31
      • 1970-01-01
      • 1970-01-01
      • 2021-08-19
      • 2023-01-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-27
      相关资源
      最近更新 更多