mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:39:52 +01:00
10 lines
262 B
Ruby
10 lines
262 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CommentsController < ApplicationController
|
|
def index
|
|
answer = Answer.find(params[:id])
|
|
@comments = Comment.where(answer:).includes([{ user: :profile }, :smiles])
|
|
|
|
render "index", locals: { a: answer }
|
|
end
|
|
end
|