diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2011-11-03 08:43:28 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2011-11-03 08:43:28 +0400 |
commit | 746331711585cfcb158dafcaf3ea5d60d9825ed2 (patch) | |
tree | b03b53e30ea735ae8b2ffb43e2840fce7eb9d069 /actionpack/lib/action_dispatch/routing | |
parent | bc09a11a666a1fba848d866dd61bf7123d4d5759 (diff) | |
download | rails-746331711585cfcb158dafcaf3ea5d60d9825ed2.tar.gz rails-746331711585cfcb158dafcaf3ea5d60d9825ed2.tar.bz2 rails-746331711585cfcb158dafcaf3ea5d60d9825ed2.zip |
Fix small typos in routing docs
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index e8bfe9bbd0..970236a05a 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -285,7 +285,7 @@ module ActionDispatch # A pattern can also point to a +Rack+ endpoint i.e. anything that # responds to +call+: # - # match 'photos/:id' => lambda {|hash| [200, {}, "Coming soon" } + # match 'photos/:id' => lambda {|hash| [200, {}, "Coming soon"] } # match 'photos/:id' => PhotoRackApp # # Yes, controller actions are just rack endpoints # match 'photos/:id' => PhotosController.action(:show) @@ -1023,6 +1023,7 @@ module ActionDispatch # creates seven different routes in your application, all mapping to # the +Photos+ controller: # + # GET /photos # GET /photos/new # POST /photos # GET /photos/:id @@ -1038,6 +1039,7 @@ module ActionDispatch # # This generates the following comments routes: # + # GET /photos/:photo_id/comments # GET /photos/:photo_id/comments/new # POST /photos/:photo_id/comments # GET /photos/:photo_id/comments/:id |