Skip to content

Commit d3e4df8

Browse files
committed
fix: Restore RSS feed for comments in Rails 8
Fix template resolution by removing .rss suffix from action name. Rails 8 now looks for index.rss.erb automatically when format is :rss.
1 parent 8b47a57 commit d3e4df8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/comments_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def index
261261
@title = "Private comments feed for #{@user.username}"
262262
end
263263

264-
render action: "index.rss", layout: false
264+
render action: "index", layout: false
265265
}
266266
end
267267
end

0 commit comments

Comments
 (0)