js_asset_path = File.join %w(app assets javascripts application.js) @generator.remove_file(js_asset_path) @coffee_asset_path = File.join %w(app assets javascripts application.js.coffee) @generator.create_file @coffee_asset_path, <<-COFFEE <% pipeline_requires.each { |r| %>//= require <%= r %> <% } %>//= require_tree . $(document).ready -> <% onreadies.each { |r| %><%= r %> <% } %> COFFEE