Browse Source

404状态码测试页面xml

pull/338/head
xxq250 2 years ago
parent
commit
a2fb12ffd6
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/main_controller.rb

+ 1
- 0
app/controllers/main_controller.rb 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


Loading…
Cancel
Save