We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e15be8c commit 0012bd9Copy full SHA for 0012bd9
actionpack/lib/action_controller/metal/strong_parameters.rb
@@ -621,7 +621,7 @@ def require(key)
621
# })
622
#
623
# params.permit(person: :contact).require(:person)
624
- # # => #<ActionController::Parameters {} permitted: true>
+ # # => ActionController::ParameterMissing: param is missing or the value is empty or invalid: person
625
626
# params.permit(person: { contact: :phone }).require(:person)
627
# # => #<ActionController::Parameters {"contact"=>#<ActionController::Parameters {"phone"=>"555-1234"} permitted: true>} permitted: true>
0 commit comments