当我尝试在仪表板上添加一个新页面时,我得到了这个错误
SQLite3 3::ConstraintException: refinery_page_translations.refinery_page_id可能不是NULL:插入"refinery_page_translations“("created_at”、"custom_slug“、"locale”、"menu_title“、"refinery_page_id”、"slug“、"title”、"updated_at")值(?、?)
用下一个宝石文件
gem 'rails','3.2.14‘
组:开发,:测试做创业板'sqlite3‘端
集团:资产做创业板'sass-rails','~> 3.2.3‘创业板’咖啡-rails‘,'~> 3.2.1’
gem 'uglifier','>= 1.0.3‘末端
gem‘’,'~> 2.3.0‘
创业板‘精细化’,'~> 2.1.0‘
发布于 2013-10-31 18:23:12
根据我在https://github.com/refinery/refinerycms/issues/2450找到的一个答案,将其添加到您的Gemfile中:
gem 'globalize3', '0.3.0'然后跑
bundle install如果失败,您可能需要按照错误输出的建议执行,然后运行
bundle update globalize3您可能需要通过
$ rm db\*.sqlite3
$ rake db:migrate db:seed这解决了我的问题。
https://stackoverflow.com/questions/19691040
复制相似问题