我有一個rails應用程序提供靜態內容(現在)。爲什麼我的rails應用程序每次都重新載入application.html.erb
每次更改視圖時,它都會重新加載使頁眉和頁腳閃爍並且看起來很醜的application.html.erb內容。
我有另一個軌道應用程序不這樣做。我不清楚這個機制是如何工作的,並且假設某些Ajax調用了單獨的視圖內容。
我route.rb如下
Zode64::Application.routes.draw do
get "contact/index"
get "about/index"
get "home/index"
root :to => 'home#index'
match "home" => "home#index"
match "about" => "about#index"
match "contact" => "contact#index"
end
而且我的鏈接是這樣
<li><%= link_to "home", "home" %></li>
我有麻煩在這裏http://www.zode64.com在那裏我看到了application.html應用程序的應用程序.erb不加載在這裏http://whatsthebeef.org/blog。
我需要做些什麼來防止這種閃爍?