From ed78770b1a13788a5d3fcae484f34654de580bd5 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Fri, 7 Dec 2012 23:20:35 -0800 Subject: 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. --- guides/source/routing.md | 6 ------ 1 file changed, 6 deletions(-) (limited to 'guides/source/routing.md') 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 -- cgit v1.2.3