Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Clarify example

Judith Rothbebf403bb2ae
diff --git a/lookbook/docs/patterns/05-dialogs.md.erb b/lookbook/docs/patterns/05-dialogs.md.erb
index 1da60e6ab5e..75046c837aa 100644
--- a/lookbook/docs/patterns/05-dialogs.md.erb
+++ b/lookbook/docs/patterns/05-dialogs.md.erb
@@ -131,6 +131,7 @@ end
Sometimes a dialog with a form needs validations. If the form is submitted with turbo, the form can be rendered again with the validation errors within the dialog.
In order for the dialog to not be closed, the rendering has to happen with an error response code (therefore 4xx or 5xx).
+Referring to the example above (see "Dialogs with separate forms"), a controller which renders validation errors inside a dialog could look like that:
```ruby
class TestController < ApplicationControler