1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix wildcard route code example in changelog.

This commit is contained in:
Hendy Tanata 2011-07-16 04:26:49 +08:00
parent f88e9d83f1
commit d7f4a3ef78

View file

@ -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]