When I creating a new rails app in windows platform with rails 4.1.8.
After bundle install and generating welcome controller.
I have got this error:
ExecJS::ProgramError in Welcome#index
TypeError: Object doesn't support this property or method
To resolve this error we need to fix this issue as:
Coffee script 1.9.0 doesn’t work with Windows. On my Windows 7 machine, using version 1.8.0 solved this problem.
Add to Gemfile
gem 'coffee-script-source', '1.8.0'
bundle update coffee-script-source