Already comes as a hash

This commit is contained in:
David Heinemeier Hansson
2024-10-19 19:55:14 -07:00
parent 255435a38f
commit c00dcd8c66
+1 -1
View File
@@ -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