What does this Rails strong-parameters script print?

from Ruby on Rails
Rails 8.1.3.1 / Ruby 4.0.6 beginner 2 min

What does this Rails strong-parameters script print?

ruby
params = ActionController::Parameters.new(
  order: { status: "shipped", account_id: 99 }
)

allowed = params.require(:order).permit(:status)
puts allowed.to_h
puts allowed.permitted?
Open in playground
Report an error