When you include a non-existing Javascript file, you probably won't notice it during development. But with caching active (on production or staging) Rails will write an empty all.js file without complaining.
Growing Rails Applications in Practice
Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.
Introduce design conventions for controllers and user-facing models