Skip to content

Commit

Permalink
Remove BestStandardsSupport references
Browse files Browse the repository at this point in the history
  • Loading branch information
robertomiranda committed Feb 1, 2013
1 parent f2c7a5d commit a83183c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion guides/source/command_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ Active Record version 4.0.0.beta
Action Pack version 4.0.0.beta
Action Mailer version 4.0.0.beta
Active Support version 4.0.0.beta
Middleware ActionDispatch::Static, Rack::Lock, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::Migration::CheckPending, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::EncryptedCookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, Rack::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport
Middleware ActionDispatch::Static, Rack::Lock, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::Migration::CheckPending, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::EncryptedCookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, Rack::Head, Rack::ConditionalGet, Rack::ETag
Application root /home/foobar/commandsapp
Environment development
Database adapter sqlite3
Expand Down
5 changes: 2 additions & 3 deletions guides/source/configuring.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ Every Rails application comes with a standard set of middleware which it uses in
* `ActionDispatch::ParamsParser` parses out parameters from the request into `params`.
* `Rack::MethodOverride` allows the method to be overridden if `params[:_method]` is set. This is the middleware which supports the PATCH, PUT, and DELETE HTTP method types.
* `ActionDispatch::Head` converts HEAD requests to GET requests and serves them as so.
* `ActionDispatch::BestStandardsSupport` enables "best standards support" so that IE8 renders some elements correctly.

Besides these usual middleware, you can add your own by using the `config.middleware.use` method:

Expand All @@ -230,13 +229,13 @@ config.middleware.insert_after ActionDispatch::Head, Magical::Unicorns
Middlewares can also be completely swapped out and replaced with others:
```ruby
config.middleware.swap ActionDispatch::BestStandardsSupport, Magical::Unicorns
config.middleware.swap ActionController::Failsafe, Lifo::Failsafe
```
They can also be removed from the stack completely:
```ruby
config.middleware.delete ActionDispatch::BestStandardsSupport
config.middleware.delete "Rack::MethodOverride"
```
### Configuring i18n
Expand Down
6 changes: 0 additions & 6 deletions guides/source/rails_on_rack.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ use ActionDispatch::ParamsParser
use Rack::Head
use Rack::ConditionalGet
use Rack::ETag
use ActionDispatch::BestStandardsSupport
run MyApp::Application.routes
```

Expand Down Expand Up @@ -215,7 +214,6 @@ And to remove browser related middleware,

```ruby
# config/application.rb
config.middleware.delete "ActionDispatch::BestStandardsSupport"
config.middleware.delete "Rack::MethodOverride"
```

Expand Down Expand Up @@ -307,10 +305,6 @@ Much of Action Controller's functionality is implemented as Middlewares. The fol

* Adds ETag header on all String bodies. ETags are used to validate cache.

**`ActionDispatch::BestStandardsSupport`**

* Enables “best standards support” so that IE8 renders some elements correctly.

TIP: It's possible to use any of the above middlewares in your custom Rack stack.

### Using Rack Builder
Expand Down

0 comments on commit a83183c

Please sign in to comment.