Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/app/views/docs/dropdown_menu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def view_template
DialogDescription { "This action cannot be undone." }
end
DialogFooter do
DialogClose { Button(variant: :destructive) { "Delete" } }
Button(variant: :destructive, data: { action: 'click->ruby-ui--dialog#dismiss' }) { "Delete" }
end
end
end
Expand Down
5 changes: 4 additions & 1 deletion docs/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class Application < Rails::Application
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")

config.exceptions_app = ->(env) { ErrorsController.action(:not_found).call(env) }
# Dispatch exceptions through the router (see the /404 and /500 routes) so the
# response status matches the actual error. A bare lambda to a single action
# rendered every failure as 404, masking 500s (e.g. a raising view) as "not found".
config.exceptions_app = routes
end
end