Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HTMLリクエストでHTMLの後にjs.erbファイルをレンダリングするにはどうすればよいですか?
assets/javascripts フォルダー内の .js または coffee ファイルに呼び出しを入れます。
$(function() { $.getScript(location.href); }
すべての URL に .js.erb ファイルがない限り、条件付きロジックを追加することをお勧めします。