Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

(unsupported) Simple Rack middleware that sets the X-UA-Compatible header

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
README.rdoc

rack-chromeframe

Simple Rack middleware that sets the X-UA-Compatible header on responses to trigger Google Chrome Frame if the client has it installed.

Usage

Plain Rack (E.g. Sinatra)

gem 'rack-chromeframe'
require 'rack/chromeframe'

use Rack::ChromeFrame,

run app

Rails

Add a gem dependency to `config/environment.rb`:

config.gem 'rack-chromeframe', :lib => 'rack/chromeframe'

Insert the middleware by adding the following to `config/environment.rb`:

config.middleware.use Rack::ChromeFrame,

Copyright

Copyright © 2010 Tricycle I.T. Pty Ltd. See LICENSE for details.

Something went wrong with that request. Please try again.