Rails 5 - JS not working in production environment (only)

后端 未结 1 1659
南方客
南方客 2021-01-23 12:14

I am struggling.

I have rails 5 app with a series of js files in my app/assets/javascripts folder. The js in those files works just fine in the development environment,

1条回答
  •  不思量自难忘°
    2021-01-23 12:51

    For me, the solution was to remove the javascript include tag from the header of my application.html.erb to beneath the body. That fixed the problem with the js file I referenced in my question.

    However, this has now broken my google maps javascript, so I'm not sure that this is actually a good solution.

    0 讨论(0)
提交回复
热议问题