我有一个提供静态内容的 Rails 应用程序(目前)。
每次我更改视图时,它都会重新加载 application.html.erb 内容,这会使页眉和页脚闪烁并且看起来很难看。
我有另一个不这样做的 Rails 应用程序。我不清楚该机制是如何工作的,可能是对单个视图内容的某种 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。
我需要做些什么来防止这种闪烁?