Retrospring/app/controllers/reaction_controller.rb

10 lines
222 B
Ruby

# frozen_string_literal: true
class ReactionController < ApplicationController
def index
answer = Answer.includes([smiles: { user: :profile }]).find(params[:id])
render "index", locals: { a: answer }
end
end