Rails アセット パイプラインには、application.js に必要なファイルが含まれていません。
ブラウザーにレンダリングされる唯一の JavaScript ファイルは application.js であり、require 行はタグを含むようにコンパイルされていません。
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
// GO AFTER THE REQUIRES BELOW.
//
//= require jquery
//= require jquery_ujs
//= require twitter/bootstrap
//= require bootstrap
//= require_tree .
;
config/application.rb に私が持っているconfig.assets.enable = true
Rails 3.2.8 を使用しており、rvm を使用してインストールされた ruby 1.9.3-p398 と 2.0.0-p0 を試しました。
application.js に必要なファイルを含めるにはどうすればよいですか?
編集: この質問のロックが最近解除されたようで、アクティビティが増加しています。これに取り組んでからしばらく経ちましたが、コードはもう存在しません。私の記憶が正しければ、Ruby と Rails を再インストールして問題を解決しました。
この質問を閉じるべきですか?この場合の適切な手順は何ですか?