Rails won't precompile .js.erb

后端 未结 1 1671
不思量自难忘°
不思量自难忘° 2021-01-24 03:06

Why Rails won\'t precompile a .js.erb asset?

My config/application.rb:

require File.expand_path(\'../boot\', __FILE__)

require         


        
相关标签:
1条回答
  • 2021-01-24 03:27

    This comment worked:

    Why not try this line: config.assets.precompile += ['edge/ink-falling_edge.js'] -> Rails may only reference files by their (non ERB) asset filename - Rich Peck

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