I am reading Rails guide and saw this
Rails ships with CoffeeScript by default
OK. If that's the case why's it that when I generate a new rails app, in the javascript assets folder I get application.js
and then when I generate a controller I get another file controler_name.coffee
? What's the point in keeping 2 extensions and what's the reason they adopted CoffeeScript if not to, say, reduce code lines. Any benefit here?