###### tags: `專案` # Ruby on Rails SQLite3::ConstraintException: NOT NULL constraint failed: 起初設置 Project 的 model 時有建立與 User model的關聯( user:belongs_to) ,但我的 user.rb 沒有建立 has_many 關聯 , 因此在送出 form 時沒有給予 user_id 的值 ## translation missing: zh-CN.activerecord.errors.messages.record_invalid 錯誤含有 zh-CN 字樣,是因為使用 i18n 因此更改了錯誤訊息樣式