This commit is contained in:
2026-05-26 05:52:09 +09:00
parent dc54f9cbb5
commit 638dccad6d
18 changed files with 259 additions and 55 deletions
@@ -15,7 +15,7 @@ class TheatreCommentsController < ApplicationController
return head :unauthorized unless current_user
content = params[:content]
return head :unprocessable_entity if content.blank?
return render_unprocessable_entity('本文は必須です.', field: :content) if content.blank?
theatre = Theatre.find_by(id: params[:theatre_id])
return head :not_found unless theatre