Created
March 27, 2012 14:58
-
-
Save Flink/2216621 to your computer and use it in GitHub Desktop.
Always exception with strong parameters
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
params = ActionController::Parameters.new({movie: {title: 'test', overview: 'test', released_on: Date.today}}) | |
m = Movie.create params.required(:movie).permit(:title, :overview, :released_on) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment