#hotwire

[ follow ]
fromRubyflow
1 day ago

How to elegantly update other UI when a Turbo Frame is updated

When a request comes from a Turbo Frame, detect the Turbo-Frame header or the Accept header for 'text/vnd.turbo-stream.html' and return a turbo-stream response that emits one or more <turbo-stream> actions. Emit a replace or update for the frame's id and additional turbo-stream actions targeting menu, counter, or sidebar elements so external UI updates occur alongside the frame update. For full page navigations, render the complete HTML with the same updated fragments so behavior remains consistent.
#ruby-on-rails
fromRubyflow
1 week ago
Ruby on Rails

Rails API Authentication with the auth generator

Use Rails API-only apps with the Rails 8 auth generator for authentication when building mobile, multi-platform, or FE-framework-focused applications instead of SPA/Hotwire.
fromRubyflow
3 months ago
UX design

The Hotwire-Rails summit, or interactive multi-step forms at peak UX

Hotwire combined with Rails can deliver interactive user experiences without needing a complete shift to JavaScript frameworks.
[ Load more ]