SMRTR ProgrammingDec 15, 2025Daily.dev

Beautiful Rails confirmation dialogs (with zero JavaScript)

SMRTR summary

Modern browsers now support Invoker Commands and @starting-style, enabling beautiful confirmation dialogs without JavaScript. These features let developers replace Turbo's dated confirm() prompts with styled modals using declarative HTML attributes like command='show-modal' and closedby='any'. The approach integrates seamlessly with Rails' Turbo.config.forms.confirm system.

SMRTR provides this summary for quick context. The original article belongs to Daily.dev.

Read the original article
SMRTR Programming

Get the next batch of curated summaries in your inbox.

This archive is built from SMRTR newsletter summaries. Subscribe for hand-picked stories without the extra noise.