Error when running rails app - ExecJS::RuntimeError

后端 未结 6 817
深忆病人
深忆病人 2020-11-29 11:07

I tried googling this and I haven\'t found an answer yet to my problem.

I am trying to run a simple controller script through rails and it is giving me this error wh

6条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 11:36

    you have to install an additional gem for javascript. edit gemfile and add gem 'therubyracer'. You can then run bundle to install the new gem.

    here is your solution in detail: http://www.railszilla.com/2011/12/rails-3-coffescript-execjs/

提交回复
热议问题