404状态码测试页面xml

This commit is contained in:
2023-08-30 09:23:56 +08:00
parent 1d20f8e5fb
commit a2fb12ffd6

View File

@@ -15,6 +15,7 @@ class MainController < ApplicationController
respond_to do |format|
format.html { render template: "/shared/#{fname}", handler: [:erb], status: status }
format.xml { render :xml => Laboratory.limit(1).to_xml, status: status }
format.all { render body: nil, status: status }
end
end