3 ms·
https://github.com/rails/rails/tree/master/actioncable https://github.com/rails/rails/tree/master/actioncable Just looking at the client examples for action ca
by reitoei 11y ago
https://github.com/rails/rails/tree/master/actioncable https://github.com/rails/rails/tree/master/actioncable
Just looking at the client examples for action cable; is CoffeeScript now the standard way of doing JavaScript in Rails?
- epidemian 11y agoUsing CoffeeScript for generators has been the default for a long time (Rails 4 for sure, but probably even from Rails 3), but you can use JavaScript as well (to the asset pipeline it makes no difference if the files are .js or .coffee, they get processed and concatenated/minified the same way), or change the default so generators generate JS files.
- sandstrom 11y agoI like (and currently use) CoffeeScript. But it seems like ES-Y and Babel is the future, so I think removing CoffeeScript as the default in Rails would be a good idea.