RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: rafudu
Usually I keep all my libs and global scripts in the app.js file, and if I need any extra JS for a specific request I load a custom file containing just the action's JS. This last file is usually really small, simple and as a side-effect my code gets less prone to conflicts because this script is somewhat isolated from the rest of the application.
I think a "per action" js loading approach would be welcome!