This is my implementation of the article from mixandgo.com
This application is a simple index with four buttons.
- Default link_to button
- link_to turbo_frame
- link_to turbo_stream
- link_to turbo_stream via Websocket
The objetive is to show the difference between how turbo works with turbo_frame and turbo_stream.
The last button is a link_to that sends a message to the server via Websocket. The server will broadcast a turbo_stream to all clients.
- Clone this repository
- Install dependencies with
bundle install
- Run the migrations with
rails db:migrate
- Run the server with
./bin/dev
- Visit http://localhost:3000
- Ready to Use
Feel free to customize this application.
Check the tutorial step by step in