diff options
author | Hendy Tanata <htanata@gmail.com> | 2011-07-15 21:56:03 +0800 |
---|---|---|
committer | Hendy Tanata <htanata@gmail.com> | 2011-07-15 22:24:04 +0800 |
commit | 0894d73c7552a4c7d576b7d3692c6a18faadd273 (patch) | |
tree | 97be6e675b2fda72186a32e12cc1c24f42b3f5fe /actionpack | |
parent | 28d5d22f5a1e3a535d86ad06f4dc8220e61a8d64 (diff) | |
download | rails-0894d73c7552a4c7d576b7d3692c6a18faadd273.tar.gz rails-0894d73c7552a4c7d576b7d3692c6a18faadd273.tar.bz2 rails-0894d73c7552a4c7d576b7d3692c6a18faadd273.zip |
Fix wildcard route code examples.
Should be "match" instead of "map".
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index b0f7d0bc11..9d320ddb8d 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -101,11 +101,11 @@ For example if you have this route: - map '*pages' => 'pages#show' + match '*pages' => 'pages#show' by requesting '/foo/bar.json', your `params[:pages]` will be equals to "foo/bar" with the request format of JSON. If you want the old 3.0.x behavior back, you could supply `:format => false` like this: - map '*pages' => 'pages#show', :format => false + match '*pages' => 'pages#show', :format => false * Added Base.http_basic_authenticate_with to do simple http basic authentication with a single class method call [DHH] |