Skip to content

Commit

Permalink
[ci skip] Fix typo in rails guide for routing
Browse files Browse the repository at this point in the history
  • Loading branch information
rramsden committed Sep 4, 2014
1 parent 11ac1e8 commit 633f72c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/routing.md
Expand Up @@ -741,7 +741,7 @@ get '*a/foo/*b', to: 'test#index'

would match `zoo/woo/foo/bar/baz` with `params[:a]` equals `'zoo/woo'`, and `params[:b]` equals `'bar/baz'`.

NOTE: 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:
NOTE: By requesting `'/foo/bar.json'`, your `params[:pages]` will be equal 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:

```ruby
get '*pages', to: 'pages#show', format: false
Expand Down

0 comments on commit 633f72c

Please sign in to comment.