Search code examples
javascriptruby-on-rails-3.1coffeescriptsprocketsrails-3.1

Does sprockets mixin raw .js files or just coffeescript files?


Does the sprocket functionality only mixin .js.coffee files to the application.js or will it also add raw .js files?


Solution

  • Both. Read the docs, particularly under the heading "Using Engines."