2995c1571f
To ensure we don't get spurious 500s when we can serve 400s on bad data
9 lines
217 B
Ruby
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
|