Mysql2::Error: Incorrect string value

后端 未结 7 1464
青春惊慌失措
青春惊慌失措 2021-01-29 23:30

I have a rails application running on production mode, but all of the sudden this error came up today when a user tried to save a record.



        
7条回答
  •  野的像风
    2021-01-30 00:16

    It seems like an encoding problem while getting data from database. Try adding the below to your database.yml file

       encoding: utf8 
    

    Hope this solves your issue

提交回复
热议问题