如果你使用的是IE8,Rails 3会自动添加标题吗?我看到X-UA兼容的meta标签设置为"IE=8.0000“,这弄乱了我的一个视图。
我似乎找不到其他可以做到这一点的东西,所以我想我应该向这里的智囊团请教。
谢谢,鲁普里克特
发布于 2010-09-28 05:26:18
如果我们看一下加载在一个普通的rails3应用程序中的所有中间件:
rake middleware
(in /private/tmp/bla)
use ActionDispatch::Static
use Rack::Lock
use ActiveSupport::Cache::Strategy::LocalCache
use Rack::Runtime
use Rails::Rack::Logger
use ActionDispatch::ShowExceptions
use ActionDispatch::RemoteIp
use Rack::Sendfile
use ActionDispatch::Callbacks
use ActiveRecord::ConnectionAdapters::ConnectionManagement
use ActiveRecord::QueryCache
use ActionDispatch::Cookies
use ActionDispatch::Session::CookieStore
use ActionDispatch::Flash
use ActionDispatch::ParamsParser
use Rack::MethodOverride
use ActionDispatch::Head
use ActionDispatch::BestStandardsSupport
run Bla::Application.routes有一个source设置X-UA-Compatible头的ActionDispatch::BestStandardsSupport,虽然不是用IE=8.000。你运行3.0.0吗?
https://stackoverflow.com/questions/3807605
复制相似问题