A simple app demonstrating a message index view with form that allows the view to update using turbo stream, which allows only certain elements to update (rather than whole page reload).
See the diff between a new rails app with messages scaffold
Based on the first 10-15 minutes of this superb tutorial.
More info on turbo streams and its methods here: https://turbo.hotwired.dev/handbook/streams
Start app with bin/dev