mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
404状态码测试页面xml
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user