Skip to content

Commit 0024d7c

Browse files
committed
docs: format.htmlを明示的に記述して可読性を向上
render :index を明示的に記述することで、 3つの形式すべてで何がレンダリングされるかを コードリーディング時に一目で理解できるように改善
1 parent dc06bb5 commit 0024d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/plan_download_yearly_stats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class DojosController < ApplicationController
117117

118118
# respond_toで形式ごとに処理を分岐
119119
respond_to do |format|
120-
format.html # => app/views/dojos/index.html.erb
120+
format.html { render :index } # => app/views/dojos/index.html.erb
121121
format.json { render json: @dojos }
122122
format.csv { send_data render_to_string, type: :csv }
123123
end

0 commit comments

Comments
 (0)