2012-01-09 22 views
1

白天有好幾次,我得到的頁面沒有正確格式的錯誤。GoogleBot Mobile在Rails網站上投擲錯誤

ActionView::MissingTemplate: Missing template frontpage/index with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml, :slim, :haml], :formats=>["*/*;q=0.6"], :locale=>[:en_GB, :en_GB]} in view paths ..... 

錯誤環境:

> HTTP_ACCEPT  
> "*/*;q=0.6" 
> HTTP_ACCEPT_ENCODING 
> "gzip,deflate" 
> HTTP_CONNECTION  
> "Keep-alive" HTTP_FROM  "googlebot(at)googlebot.com" 
> HTTP_USER_AGENT  
> "SAMSUNG-SGH-E250/1.0 Profile/MIDP-2.0 
> Configuration/CLDC-1.1 UP.Browser/6.2.3.3.c.1.101 (GUI) MMP/2.0 (compatible; Googlebot-Mobile/2.1; +http://www.google.com/bot.html)" 

每次,它似乎是試圖抓取網頁,所以Googlebot移動。

我們在Nginx/Passenger Web服務器上使用Rails 3.0.7。是否有任何與移動爬蟲相關的配置以避免此錯誤被拋出?

+0

您的語言環境爲i18n環境設置了哪種方式? – davidb 2012-01-09 09:46:51

+0

config.i18n.load_path + = Dir [Rails.root.join('config','locales','**','*。{rb,yml}')] config.i18n.default_locale =:en_GB config.i18n.available_locales = [:en_GB,:nb_NO] – 2012-01-09 09:58:21

回答