Browser Filters plugin

Plugin details

Browser filters is a collection of three common filtering needs: UnicodeContentType, SafariUnicodeFix, LinkPrefetchingBlock.

Repositoryhttp://dev.rubyonrails.org/svn/rails/plugins/browser_filters/ Author David Heinemeier Hansson Tags filter, browser LicenseUnknown

Documentation

Install the plugin:
ruby script/plugin install http://dev.rubyonrails.org/svn/rails/plugins/browser_filters/

Browser filters is a collection of three common filtering needs:

* UnicodeContentType: Set the charset to text/html; charset=utf-8 unless something else has already been specified by the action.

* SafariUnicodeFix: Fix the unicode sent to the Safari browser under Ajax calls to prevent garbage.

* LinkPrefetchingBlock: Block all pre-fetching requests by the Google Web Accelerator and others using a 403 Forbidden.

You can get all these filters applied at once by simply including BrowserFilters:

  class ApplicationController < ActiveRecord::Base
    include BrowserFilters
  end


...but you can also cherry-pick:

  class ApplicationController < ActiveRecord::Base
    include SafariUnicodeFix, LinkPrefetchingBlock
  end

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 9 months ago