14 lines
257 B
Ruby
14 lines
257 B
Ruby
class CommentsController < ApplicationController
|
|
include BubbleScoped, BucketScoped
|
|
|
|
def create
|
|
@bubble.capture new_comment
|
|
redirect_to @bubble
|
|
end
|
|
|
|
private
|
|
def new_comment
|
|
Comment.new params.expect(comment: [ :body ])
|
|
end
|
|
end
|