“Encoding::InvalidByteSequenceError” error occurs in Rails 3.1.0

前端 未结 2 1678
旧时难觅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条回答
  •  萌比男神i
    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.

提交回复
热议问题