mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix small typos in routing docs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user