Error when running rails app - ExecJS::RuntimeError

后端 未结 6 810
深忆病人
深忆病人 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:48

    Seems like javascript runner is missing you just need to do

    gem 'therubyracer'
    

    then

     bundle install
    

    then restart the server if you are using the production server then consider restart the production server.

    It will definitely solve your problem,

    cheers

提交回复
热议问题