RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: monksy
Site: http://theexceptioncatcher.com
With rails4 you must specify the parameters that are being saved.
@comment = @article.comments.create!(comment_params) redirect_to @article, :notice => "Comment Created!" end private def comment_params params.require(:comment).permit(:name, :content) end
With rails4 you must specify the parameters that are being saved.