To my understanding, all of your JavaScript gets merged into 1 file. Rails does this by default when it adds //= require_tree . to the bottom of your appl
//= require_tree .
appl
<%= javascript_include_tag params[:controller] %>