“Encoding::InvalidByteSequenceError” error occurs in Rails 3.1.0

前端 未结 2 1673
旧时难觅i
旧时难觅i 2020-12-20 09:45

I updated Rails to version 3.1.0, but when I generate a new app and scaffold, it reports:

Encoding::InvalidByteSequenceError in Articles#index

Showing E:/bl         


        
相关标签:
2条回答
  • 2020-12-20 09:54

    Change the version of execjs to 1.2.4, 1.2.6 or 1.2.8 in Gemfile.lock

    Only 1.2.7 will cause the problem.

    Hope this helps.

    0 讨论(0)
  • 2020-12-20 10:10

    I had the same situation.

    Renaming articles.js.coffee to articles.js can help.

    0 讨论(0)
提交回复
热议问题