3 ms·
Learn Hotwire by building the simplest Ruby on Rails and Hotwire app possible
- hbroadbent 3y agoFor a long time, I held off using Hotwire in my Rails apps, because I didn't understand it, and because I found the official documentation hard to digest. So I decided to write the guide I wish I had when I was learning Hotwire. The sample app we build isn't pretty, but it's the simplest possible app I could come up with to help illustrate all the different parts of Hotwire, and how they link together. By the end of the guide, you'll know how to use `turbo_stream_from`, `broadcasts_to` and `turbo_frame_tag` to build a live frontend — all done with Hotwire, no extra JS required. I hope you find this resource useful! If you can think of any improvements share them with me. I'm also happy to answer any questions you might have.
- Alifatisk 3y ago> For a long time, I held off using Hotwire in my Rails apps, because I didn't understand it, and because I found the official documentation hard to digest. This is so relatable!