From 7c05ea23a0e6394c61f3d2c1d0ba345784329427 Mon Sep 17 00:00:00 2001 From: Katie Oldaker Date: Fri, 7 Dec 2012 12:50:09 -0500 Subject: Fixed grammar in a lot of guide prologues. --- guides/source/routing.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'guides/source/routing.md') diff --git a/guides/source/routing.md b/guides/source/routing.md index 714c0b609e..0e78e7d4cd 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -5,11 +5,11 @@ This guide covers the user-facing features of Rails routing. After reading this guide, you will know: -* Understand the code in `routes.rb`. -* Construct your own routes, using either the preferred resourceful style or the `match` method. -* Identify what parameters to expect an action to receive. -* Automatically create paths and URLs using route helpers. -* Use advanced techniques such as constraints and Rack endpoints. +* How to interpret the code in `routes.rb`. +* How to construct your own routes, using either the preferred resourceful style or the `match` method. +* What parameters to expect an action to receive. +* How to automatically create paths and URLs using route helpers. +* Advanced techniques such as constraints and Rack endpoints. -------------------------------------------------------------------------------- -- cgit v1.2.3 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