javascript_include_tag throws unsupported method

后端 未结 3 1038
天涯浪人
天涯浪人 2020-12-11 08:17

I recently created a new project with Rails 4.2.0 and created a controller called Land for the landing page. So, I ran into this error upon visting http:/

3条回答
  •  既然无缘
    2020-12-11 08:48

    I am running Windows 10, Ruby 2.1.7p400 and Rails 4.2.4. I could not get gem coffee-script-source '1.8.0' to install as gem insisted on version 1.9.1.1. I tried changing ExecJS to use UTF-8 encoding and running cscript without the //U switch as in this post without any luck as well.

    I ended up placing nodejs.exe in the Ruby\bin folder and the issue was resolved.

提交回复
热议问题