【发布时间】:2013-08-05 12:49:54
【问题描述】:
我最近将我的 Rails 应用程序从一个文件夹移到了另一个文件夹。它在原始文件夹中完美运行。我复制了所有内容。
我认为这可能与设计有关,因为我将它用于用户管理,并且我将数据库作为完全读/写/执行。非常感谢任何建议,我是 Rails 新手。
没有任何修改,我现在运行时遇到这个错误:
Devise::RegistrationsController#create 中的 ActiveRecord::StatementInvalid
SQLite3::ReadOnlyException: 尝试写入只读数据库: INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "first_name", "last_name", " last_sign_in_at"、"last_sign_in_ip"、"profile_name"、"remember_created_at"、"reset_password_sent_at"、"reset_password_token"、"sign_in_count"、"updated_at") 值 (?, ?, ?, ?, ?, ?, ?, ?, ? , ?, ?, ?, ?, ?, ?) Rails.root: /home/rails
【问题讨论】:
-
可能正在查看您将代码移动到其中的文件夹的写访问权限可能会有所帮助?
标签: ruby-on-rails sqlite devise