#215 テスト・ケース追加

このコミットが含まれているのは:
2026-01-14 01:22:58 +09:00
コミット 9e51fa7d34
5個のファイルの変更19行の追加1行の削除
+5 -1
ファイルの表示
@@ -26,7 +26,11 @@ class TagsController < ApplicationController
def show
tag = Tag.find_by(id: params[:id])
render json: tag.as_json(only: [:id, :category, :post_count], methods: [:name, :has_wiki])
if tag
render json: tag.as_json(only: [:id, :category, :post_count], methods: [:name, :has_wiki])
else
head :not_found
end
end
def show_by_name