Skip to content
This repository was archived by the owner on Aug 17, 2017. It is now read-only.

Conversation

dsalahutdinov
Copy link

This code works ok

ActionController::Parameters.new({"0" => {:subject_id=>45542597, :quantity=>1}}).permit([:subject_id, :quantity])
=> {:subject_id=>45542597, :quantity=>1}

expect number hash key to works ok too, but

ActionController::Parameters.new({0 => {:subject_id=>45542597, :quantity=>1}}).permit([:subject_id, :quantity])
=> {}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant