Skip to content
Merged
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: 2 additions & 0 deletions docs/api/100-components/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ In the example shown above, the `success` `transition` is statically defined. So
Imagine creating a new Active Record instance with a `form`. If you want to show the fresh instance on another page and therefore want to define a `transition` after successful form submission, you would need to know the ID of the fresh instance! That is not possible, as the ID is auto-generated and depends on the current environment/state. Therefore you can tell the `form` component to follow a transition, which the server action defines after creating the new instance (and now knowing the ID):

On the `page`:

```ruby
#...

Expand All @@ -1241,6 +1242,7 @@ def form_config
}
end
```

On the `controller` `action`:

```ruby
Expand Down