Skip to content

Commit c88ee55

Browse files
authored
Merge pull request rails#53778 from hachi8833/fix_apidoc_strong_parameters
[ci-skip][docs] Fix result of sample code in strong parameter API doc
2 parents e15be8c + 0012bd9 commit c88ee55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionpack/lib/action_controller/metal/strong_parameters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ def require(key)
621621
# })
622622
#
623623
# params.permit(person: :contact).require(:person)
624-
# # => #<ActionController::Parameters {} permitted: true>
624+
# # => ActionController::ParameterMissing: param is missing or the value is empty or invalid: person
625625
#
626626
# params.permit(person: { contact: :phone }).require(:person)
627627
# # => #<ActionController::Parameters {"contact"=>#<ActionController::Parameters {"phone"=>"555-1234"} permitted: true>} permitted: true>

0 commit comments

Comments
 (0)