Skip to content

Commit 18a4dd8

Browse files
committed
[Bug Fix] Mount ToastRegion in DocsLayout
DocsController uses DocsLayout, not ApplicationLayout — without this, the Region was missing on every /docs/* page, so window.RubyUI.toast was never registered (Toaster Stimulus controller never connected) and Turbo Stream appends had no target.
1 parent 6fd51da commit 18a4dd8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/app/views/layouts/docs_layout.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def view_template(&block)
2323
end
2424
render Shared::Footer.new
2525
render Shared::Flashes.new(notice: flash[:notice], alert: flash[:alert])
26+
render RubyUI::ToastRegion.new
2627
end
2728
end
2829
end

0 commit comments

Comments
 (0)