Guilherme Santos


10 Experience
0 Lessons Completed
0 Questions Solved


Posted in Dynamic Select Fields in Rails with Hotwire Discussion

Great explanation, Chris!

I'd like to know the difference between use Request.js#get and the native #fetch.
I was trying with #fetch, the request and turbo_stream was triggered but the state>select was not filled with the data.

Does anyone know why is that?

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.