Files
fizzy/app/controllers/comments_controller.rb
T
David Heinemeier Hansson 2995c1571f Use the new params#expect syntax where applicable
To ensure we don't get spurious 500s when we can serve 400s on bad data
2024-10-19 18:53:41 -07:00

9 lines
217 B
Ruby

class CommentsController < ApplicationController
include BubbleScoped, BucketScoped
def create
@bubble.comment! params.expect(comment: [ :body ])
redirect_to bucket_bubble_url(@bucket, @bubble)
end
end