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 %> <% } %> COFFEE @coffee_init_path = File.join %w(app assets javascripts init.js.coffee) @generator.create_file @coffee_init_path, <<-COFFEE $(document).ready -> <% on_readies.each { |r| %><%= r %> <% } %> COFFEE