diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-05-04 17:51:15 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-05-04 17:51:15 +0530 |
commit | 3d9673d8f6fdb5e330b2a276df288834058a5260 (patch) | |
tree | fba92ce97bba236916bab79489eb68c8788390c9 /guides/source/configuring.textile | |
parent | b24f1ce13884a86d6d93d0b16e1fc3716360b65a (diff) | |
parent | 616de66c55b58479e7da4271a0c990529395440e (diff) | |
download | rails-3d9673d8f6fdb5e330b2a276df288834058a5260.tar.gz rails-3d9673d8f6fdb5e330b2a276df288834058a5260.tar.bz2 rails-3d9673d8f6fdb5e330b2a276df288834058a5260.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/configuring.textile')
-rw-r--r-- | guides/source/configuring.textile | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/guides/source/configuring.textile b/guides/source/configuring.textile index 66e453c3ff..59f12e98ab 100644 --- a/guides/source/configuring.textile +++ b/guides/source/configuring.textile @@ -248,14 +248,6 @@ They can also be removed from the stack completely: config.middleware.delete ActionDispatch::BestStandardsSupport </ruby> -In addition to these methods to handle the stack, if your application is going to be used as an API endpoint only, the middleware stack can be configured like this: - -<ruby> -config.middleware.http_only! -</ruby> - -By doing this, Rails will create a smaller middleware stack, by not adding some middlewares that are usually useful for browser access only, such as Cookies, Session and Flash, BestStandardsSupport, and MethodOverride. You can always add any of them later manually if you want. Refer to the "API App docs":api_app.html for more info on how to setup your application for API only apps. - h4. Configuring i18n * +config.i18n.default_locale+ sets the default locale of an application used for i18n. Defaults to +:en+. |