Created
June 13, 2014 12:46
-
-
Save sromano/1db4742fa3a77d5bc9e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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