Skip to content

Commit 06998ed

Browse files
authored
Add section about generators in README
1 parent abc5e55 commit 06998ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ Run the install generator:
2626

2727
this will create an `ApplicationForm` class in your app/forms directory. You can use it as a base class for your form objects.
2828

29+
## Generators
30+
31+
You can [generate](https://guides.rubyonrails.org/configuring.html#configuring-generators) a form and its tests with the following command:
32+
33+
```
34+
$ rails generate form FooBar
35+
```
36+
37+
This will create the `FooBarForm`
38+
2939
## Usage
3040

3141
Here is an example of an `HyperActiveForm` form object:

0 commit comments

Comments
 (0)