Frank Betorina

Joined

520 Experience
5 Lessons Completed
0 Questions Solved

Activity

Alternatively to the webpacker way of require the flatpicker css in the packs/application.js you can do someting like:

/*
 *= require flatpicker/dist/flatpicker
 */

In your rails app/assets/stylesheets/application.css (or other) manifest file.

Posted in How to Upgrade to Turbolinks 5 Discussion

Hi Chris, great episode! You can also skip the extra gem(s) and compatibility files by simply changing code. Doing something like:

Old Turbolinks Classic:
$(document).on "ready page:load", ->
# CoffeeScript code

Turbolinks 5:
$(document).on "turbolinks:load", ->
# CoffeeScript code

https://github.com/turbolin...

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.