404状态码测试页面xml
This commit is contained in:
parent
1d20f8e5fb
commit
a2fb12ffd6
|
@ -15,6 +15,7 @@ class MainController < ApplicationController
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { render template: "/shared/#{fname}", handler: [:erb], status: status }
|
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 }
|
format.all { render body: nil, status: status }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue