提交 c2b62add 编写于 作者: S Santiago Pastorino

Merge pull request #2090 from htanata/fix_wildcard_route_code_in_changelog

Fix wildcard route code example in 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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册