From c00dcd8c660a5df3901fb41e8081cc8b739e801c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 19 Oct 2024 19:55:14 -0700 Subject: [PATCH] Already comes as a hash --- app/controllers/comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index dde8f90e4..301f7f498 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -2,7 +2,7 @@ class CommentsController < ApplicationController include BubbleScoped, BucketScoped def create - @bubble.comments.create! body: params.expect(comment: [ :body ]) + @bubble.comments.create! params.expect(comment: [ :body ]) redirect_to @bubble end end