Skip to content

Instantly share code, notes, and snippets.

@aep
Created March 22, 2014 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aep/9707722 to your computer and use it in GitHub Desktop.
Save aep/9707722 to your computer and use it in GitHub Desktop.
puts params
params.require(:region).permit(:beacons)
---> output
{"region"=>{"beacons"=>[{"minor"=>123, "uuid"=>"123-123-123-123", "major"=>123}]}, "action"=>"create", "controller"=>"regions"}
Unpermitted parameters: beacons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment