diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2016-03-07 12:53:18 -0500 |
---|---|---|
committer | Jon Moss <maclover7@users.noreply.github.com> | 2016-03-07 12:53:18 -0500 |
commit | 96e25060461aadaff7fd6504bb26e7f5df03d4d3 (patch) | |
tree | d3b061aaf9d3ebc49e18baf8d963ef22f4f484d1 /guides | |
parent | b4202fec9f3127bf89ded37c91cab879b452536e (diff) | |
parent | 7c94db137065e8dbb91c39b55120ca3e497db549 (diff) | |
download | rails-96e25060461aadaff7fd6504bb26e7f5df03d4d3.tar.gz rails-96e25060461aadaff7fd6504bb26e7f5df03d4d3.tar.bz2 rails-96e25060461aadaff7fd6504bb26e7f5df03d4d3.zip |
Merge pull request #24095 from maclover7/rm-incorrect-example
Remove incorrect Rack documentation example
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/routing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md index bd3e236a2b..81321c7405 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -812,10 +812,10 @@ In all of these cases, if you don't provide the leading host (`http://www.exampl Instead of a String like `'articles#index'`, which corresponds to the `index` action in the `ArticlesController`, you can specify any [Rack application](rails_on_rack.html) as the endpoint for a matcher: ```ruby -match '/application.js', to: Sprockets, via: :all +match '/application.js', to: MyRackApp, via: :all ``` -As long as `Sprockets` responds to `call` and returns a `[status, headers, body]`, the router won't know the difference between the Rack application and an action. This is an appropriate use of `via: :all`, as you will want to allow your Rack application to handle all verbs as it considers appropriate. +As long as `MyRackApp` responds to `call` and returns a `[status, headers, body]`, the router won't know the difference between the Rack application and an action. This is an appropriate use of `via: :all`, as you will want to allow your Rack application to handle all verbs as it considers appropriate. NOTE: For the curious, `'articles#index'` actually expands out to `ArticlesController.action(:index)`, which returns a valid Rack application. |