,我發現了以下錯誤:的Rails 3 Authlogic - 'acts_as_authentic' 未定義
NameError (undefined local variable or method `acts_as_authentic' for #<Class:0x1037e6310>):
app/models/user.rb:2
app/controllers/user_controller.rb:3:in `new'
我使用Rails 3.0.0,使用Ruby 1.8.7。 Authlogic是我的Gemfile如下:是
gem 'authlogic', :git => "git://github.com/binarylogic/authlogic.git"
我User.rb文件的全部內容如下:
class User < ActiveRecord::Base
acts_as_authentic
end
我得到同樣的錯誤是否通過「軌道控制檯」或通過服務器。我重新啓動了服務器的次數超過了我的數量。請幫忙,我弄不明白。
它的安裝。這不是問題 – Chris 2010-10-10 04:39:17