<分区>
Asset filtered out and will not be served: add
Rails.application.config.assets.precompile += %w( login.js )
toconfig/initializers/assets.rb
and restart your server
当我尝试运行我的应用程序时出现上述错误。
<% content_for :javascripts do %>
<%= javascript_include_tag 'login' %>
<% end %>
我已经将我所有的 js 文件放在 assets/javascripts
中,但仍然出现上述错误。