Documentation: https://api.rubyonrails.org/classes/ActionController/Parameters.html#method-i-dig
I run rails c and write this:
params = ActionController::Parameters.new(foo: { bar: { baz: 1 } })
And further:
params.dig(:foo, :bar, :baz)
These two lines I took from the page, the link to which is given above.
As a result, I get nil.
When working with Hash everything is fine. There is a problem when working with ActionController::Parameters. I have this problem inside the Rails application.
Need your opinion on this.