aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-03-10 11:05:21 -0300
committerRafael França <rafaelmfranca@gmail.com>2016-03-10 11:05:21 -0300
commit5e496cbf350f0bbbb37782ebe55a0752ae58d9b6 (patch)
tree939b3a197c2af169efb03ed271fa596255c295f6 /actionpack
parentd9b42cfd347508604ed5417c3aa91eb0be3dcb8d (diff)
parent40f6d200cf603de4bade3782663b28015baffcf6 (diff)
downloadrails-5e496cbf350f0bbbb37782ebe55a0752ae58d9b6.tar.gz
rails-5e496cbf350f0bbbb37782ebe55a0752ae58d9b6.tar.bz2
rails-5e496cbf350f0bbbb37782ebe55a0752ae58d9b6.zip
Merge pull request #24137 from sidonath/patch-1
Reorder paragraphs in the Routing API docs
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb
index dcf800b215..79d2f1f13c 100644
--- a/actionpack/lib/action_dispatch/routing.rb
+++ b/actionpack/lib/action_dispatch/routing.rb
@@ -73,14 +73,14 @@ module ActionDispatch
# get 'post/:id' => 'posts#show'
# post 'post/:id' => 'posts#create_comment'
#
+ # Now, if you POST to <tt>/posts/:id</tt>, it will route to the <tt>create_comment</tt> action. A GET on the same
+ # URL will route to the <tt>show</tt> action.
+ #
# If your route needs to respond to more than one HTTP method (or all methods) then using the
# <tt>:via</tt> option on <tt>match</tt> is preferable.
#
# match 'post/:id' => 'posts#show', via: [:get, :post]
#
- # Now, if you POST to <tt>/posts/:id</tt>, it will route to the <tt>create_comment</tt> action. A GET on the same
- # URL will route to the <tt>show</tt> action.
- #
# == Named routes
#
# Routes can be named by passing an <tt>:as</tt> option,