DEV Community

Discussion on: How to migrate Rails UJS to Hotwire (Turbo)

Collapse
 
fcatuhe profile image
François Catuhe

Excellent, that sums up what I also discovered.

Have you investigated the replacements for Rails.fire and Rails.ajax? Asking as these are the 2 next on my list.

Collapse
 
thomasvanholder profile image
thomasvanholder

@fcatuhe, I'm glad you find it useful.

There is a recent rails library called Request.js which can fetch URL's in JS. This can help migrate existing Rails.fire and Rails.ajax calls.

Collapse
 
fcatuhe profile image
François Catuhe

Wow I had missed that one, that's exactly it, thanks!