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.
Ruby on Rails アプリ内から複数の CasperJS スクリプトを起動したいと考えています。
私は2つのことを知りたいです:
それがgemではなく、Rails 3.x以降を使用している場合は、配置するだけです
/app/assets/javascripts
もし
require_tree.
application.js には、上記のフォルダーにすべてが自動的に含まれます。
含める順序に関する問題がある場合は、次のように記述してください。
//= require xxxxxxx
xxxxxxx は、拡張子を除いた js ファイル名です。
上から順に含まれます。