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
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.
I had the same situation.
Renaming articles.js.coffee to articles.js can help.
articles.js.coffee
articles.js