我严格遵循了acl9自述文件,仔细检查了所有内容,但在尝试使用has_role!(:admin)时仍然出现以下错误。
ActiveRecord::StatementInvalid: SQLite3::ConstraintException: roles_users.created_at may not be NULL: INSERT INTO "roles_users" ("user_id", "role_id") VALUES (1, 1)唯一需要注意的是,我使用的是Rails3.2,并使用了以下错误修复:Rails 3.2 undefined method `key?' for nil:NilClass
有什么建议吗?
https://stackoverflow.com/questions/11447058
复制相似问题