```ruby
class CommentsController < ApplicationController
end
```

Add the comments controller for user to comment commentable items.
user
```ruby
class CommentsController < ApplicationController
  before_action :require_user

  def create
    @comment = Comment.new(comment_params)
    @comment.user = current_user
    @success = @comment.save
  end

  private
  def comment_params
    params.require(:comment).permit(:commentable_type, :commentable_id, :body)
  end
end
```
assistant