Skip to content

Commit 34a9394

Browse files
Fix whitespace typos in form.md
One of the code blocks needed blank lines around it in order to render properly
1 parent 6b186c1 commit 34a9394

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api/100-components/form.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,7 @@ In the example shown above, the `success` `transition` is statically defined. So
12241224
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):
12251225

12261226
On the `page`:
1227+
12271228
```ruby
12281229
#...
12291230

@@ -1241,6 +1242,7 @@ def form_config
12411242
}
12421243
end
12431244
```
1245+
12441246
On the `controller` `action`:
12451247

12461248
```ruby

0 commit comments

Comments
 (0)