Skip to content

Commit 2a47f84

Browse files
author
Nils Henning
committed
[TASK] add forms guide
1 parent bf9a8c7 commit 2a47f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/500-forms/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Forms are one of the most important components for a lot of applications as they
1010

1111
## Usage
1212

13-
### `form` component
13+
### Form component
1414

1515
Like in Rails with `form_for` you can create a form in matestack with `form`. It takes a hash as parameter with which you can configure your form and a block with the formular content. In the config hash you can set the HTTP request method, a path, success and failure behavior. You also need to specify a model, string or symbol for what the form is for. All form params will then be submitted nested in this namespace, following Rails behavior and conventions.
1616

@@ -47,7 +47,7 @@ Each form requires a few keys for configuration: `:for`, `:path`, `:method`.
4747

4848
* `:method` sets the request method the form is submitted with
4949

50-
### `form` success and failure behavior
50+
### Form success and failure behavior
5151

5252
Forms will be submitted asynchronously and in case of errors dynamically extended to show errors belonging to inputs fields. In case of a successful request the form is resetted.
5353

0 commit comments

Comments
 (0)