diff options
author | Steve Klabnik <steve@steveklabnik.com> | 2012-12-07 23:20:35 -0800 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2012-12-07 23:20:35 -0800 |
commit | ed78770b1a13788a5d3fcae484f34654de580bd5 (patch) | |
tree | acbfe5c166ae76a4bb3580e747d44dff9d867db8 /guides/source/routing.md | |
parent | e618adbcabe59eaccfab1f721eb3cf1e915e012e (diff) | |
download | rails-ed78770b1a13788a5d3fcae484f34654de580bd5.tar.gz rails-ed78770b1a13788a5d3fcae484f34654de580bd5.tar.bz2 rails-ed78770b1a13788a5d3fcae484f34654de580bd5.zip |
Remove references to Rails versions.
There's no reason for guides to reference old behaviors. They should
be current as of the versions of Rails that they ship with, and including
older information just clutters thing.
I discussed this change with @fxn and he agrees.
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r-- | guides/source/routing.md | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md index 0e78e7d4cd..241a7cfec6 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -733,12 +733,6 @@ 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: Starting from Rails 3.1, wildcard segments will always match the optional format segment by default. For example if you have this route: - -```ruby -get '*pages', to: 'pages#show' -``` - 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: ```ruby |