3 ms·
The new TurboLinks is one of the best things about Rails 5, though. You can basically get UX comparable to an SPA with mostly server code. As for coffeescript,
by jsmith0295 10y ago
The new TurboLinks is one of the best things about Rails 5, though. You can basically get UX comparable to an SPA with mostly server code.
As for coffeescript, you can just remove the gem and it'll use regular JS.
https://www.nateberkopec.com/2015/05/27/100-ms-to-glass-with-rails-and-turbolinks.html https://www.nateberkopec.com/2015/05/27/100-ms-to-glass-with...
- wavesplash 10y agoSadly, you can't just remove the gem anymore. At least not if you want to use ActionCable. ActionCable generators only generate Coffeescript.
- mieko 10y agoActionCable generators can now generate either JS or Coffeescript. This is relatively recent, but the direction is clearly toward decoupling. https://github.com/rails/rails/commit/63ac6255ba3553b529f4b23846ec756b7a7a746d https://github.com/rails/rails/commit/63ac6255ba3553b529f4b2...