Skip to content

Commit 6880213

Browse files
committed
Fix jbuilder missing template error
1 parent 6f804ee commit 6880213

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/pages_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def set_comments
4343
end
4444

4545
def comments_json_string
46-
render_to_string(template: "/comments/index.json.jbuilder",
47-
locals: { comments: Comment.all }, format: :json)
46+
render_to_string(template: "/comments/index",
47+
locals: { comments: Comment.all }, formats: :json)
4848
end
4949

5050
def render_html

0 commit comments

Comments
 (0)