Skip to content

Instantly share code, notes, and snippets.

@sromano
Created June 13, 2014 12:46
Show Gist options
  • Save sromano/1db4742fa3a77d5bc9e9 to your computer and use it in GitHub Desktop.
Save sromano/1db4742fa3a77d5bc9e9 to your computer and use it in GitHub Desktop.
[4] pry(main)> ActionController::Parameters.new({discount:"false"}).require(:discount)
=> "false"
[5] pry(main)> ActionController::Parameters.new({discount:false}).require(:discount)
ActionController::ParameterMissing: param is missing or the value is empty: discount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment