Skip to content

Commit 8efd634

Browse files
Fix boolean error in form helpers guide
1 parent 16c537e commit 8efd634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/form_helpers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ end
10211021

10221022
### Preventing Empty Records
10231023

1024-
It is often useful to ignore sets of fields that the user has not filled in. You can control this by passing a `:reject_if` proc to `accepts_nested_attributes_for`. This proc will be called with each hash of attributes submitted by the form. If the proc returns `false` then Active Record will not build an associated object for that hash. The example below only tries to build an address if the `kind` attribute is set.
1024+
It is often useful to ignore sets of fields that the user has not filled in. You can control this by passing a `:reject_if` proc to `accepts_nested_attributes_for`. This proc will be called with each hash of attributes submitted by the form. If the proc returns `true` then Active Record will not build an associated object for that hash. The example below only tries to build an address if the `kind` attribute is set.
10251025

10261026
```ruby
10271027
class Person < ApplicationRecord

0 commit comments

Comments
 (0)