当我尝试登录注销后创建的用户时,我不断收到上述消息...
我的用户模型是这样的,名称是显示名称
class User < ActiveRecord::Base
attr_accessible :name, :email, :persistence_token, :password, :password_confirmation
before_save { |user| user.email = email.downcase }
validates :email, uniqueness: true
acts_as_authentic do |configuration|
configuration.session_class = Session
end
end
我的迁移是
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :email
t.string :name
t.string :crypted_password
t.string :password_salt
t.string :persistence_token
end
end
def self.down
drop_table :sessions
end
end
我在我的登录表单中使用:email
和字段:password