I've been just adding my individual scripts at the bottom of my rails views via script tags.
It just seems way easier and more intuitive to include a one off script in the actual view rather than a separate JS file. But what are the arguments against doing this?
Having the script in a separate file, you can:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.