404状态码测试页面xml

This commit is contained in:
xxq250 2023-08-30 09:23:56 +08:00
parent 6bc0587168
commit 8909ad2ba8
1 changed files with 1 additions and 0 deletions

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