RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

When a Turbo Frame updates, you sometimes need to also update UI elements that sit outside the frame but logically belong to it—like a menu, counter, or sidebar highlight. Before reaching for JavaScript, there’s a simple backend-only technique using a small helper that handles both full page loads and frame updates elegantly: How to elegantly update other UI when a Turbo Frame is updated

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in