Tools•generator
Rails 8 for Ruby on Rails
Generates Turbo Stream XML templates for real-time DOM updates in Rails applications
Try the tool
client runnerGenerated Turbo Stream XML
Run the tool to see output.
Examples
Update item partial
{
"component_name": "item",
"action": "update",
"selector": "#item-456"
}Expected output
<turbo-stream action="update" target="item-456"><template><div id="item-456">Updated content</div></template></turbo-stream>
Append new comment
{
"component_name": "comment",
"action": "append",
"selector": "#comments"
}Expected output
<turbo-stream action="append" target="comments"><template><div id="comment-789">New comment</div></template></turbo-stream>
How it works
Inputs define the DOM element and update method. The tool generates valid Turbo Stream XML that Rails can process via Hotwire. Use in controller responses to update specific page elements without full reloads.