aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-02-23 16:54:40 +0100
committerYves Senn <yves.senn@gmail.com>2015-02-23 16:54:40 +0100
commite71f5dad4e0d27afbcc091173bee20bd6f4d2a4e (patch)
tree35a37ecbe45e1c8e3cf65724bdea74a1be04b2e6 /actionpack
parent98d896e0aede716ecf3918d54dfc78bad80d2878 (diff)
downloadrails-e71f5dad4e0d27afbcc091173bee20bd6f4d2a4e.tar.gz
rails-e71f5dad4e0d27afbcc091173bee20bd6f4d2a4e.tar.bz2
rails-e71f5dad4e0d27afbcc091173bee20bd6f4d2a4e.zip
some indenting and punctuation fixes. [ci skip]
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/CHANGELOG.md21
1 files changed, 11 insertions, 10 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md
index c5b208f5b6..8f36af94b4 100644
--- a/actionpack/CHANGELOG.md
+++ b/actionpack/CHANGELOG.md
@@ -9,11 +9,12 @@
*Ville Lautanala*
-* Add http_cache_forever to Action Controller, so we can cache a response that never gets expired.
+* Add `http_cache_forever` to Action Controller, so we can cache a response
+ that never gets expired.
*arthurnn*
-* ActionController#translate supports symbols as shortcuts.
+* `ActionController#translate` supports symbols as shortcuts.
When shortcut is given it also lookups without action name.
*Max Melentiev*
@@ -42,14 +43,14 @@
request causing an incorrect behavior during the fall back to GET requests.
Example:
- ```ruby
- draw do
- get '/home' => 'test#index'
- mount rack_app, at: '/'
- end
- head '/home'
- assert_response :success
- ```
+
+ draw do
+ get '/home' => 'test#index'
+ mount rack_app, at: '/'
+ end
+ head '/home'
+ assert_response :success
+
In this case, a HEAD request runs through the routes the first time and fails
to match anything. Then, it runs through the list with the fallback and matches
`get '/home'`. The original behavior would match the rack app in the first pass.