14 lines
252 B
Ruby
14 lines
252 B
Ruby
class CommentsController < ApplicationController
|
|
include BubbleScoped
|
|
|
|
def create
|
|
@bubble.comments.create!(comment_params)
|
|
redirect_to @bubble
|
|
end
|
|
|
|
private
|
|
def comment_params
|
|
params.require(:comment).permit(:body)
|
|
end
|
|
end
|