为什么我会得到奇怪的ActionView :: MissingTemplate错误?

时间:2017-11-25 18:20:09

标签: ruby-on-rails ruby

我最近收到了很多这样的错误:

An ActionView::MissingTemplate occurred in pages#home:

 Missing template pages/home, application/home with {:locale=>[:en], :formats=>[:xml, "application/xml;"], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in:
 * "/home/MyApp/app/views"



-------------------------------
Request:
-------------------------------

 * URL        : http://www.myapp.com/
 * HTTP Method: GET
 * IP address : 50.125.101.219
 * Parameters : {"controller"=>"pages", "action"=>"home"}
 * Timestamp  : 2017-11-25 00:06:28 +0100
 * Server : MyApp
 * Rails root : /home/MyApp
 * Process: 19546

这些是由机器人抓取我的网站引起的吗?

我无法通过篡改网址来重现这些错误。谁能告诉我如何阻止他们?

0 个答案:

没有答案