diff options
author | Andrew White <andrew.white@unboxed.co> | 2017-02-23 12:00:51 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2017-02-23 12:00:51 +0000 |
commit | fd85bec26148e05a8e3d546c2827c889f9a9f8f8 (patch) | |
tree | 043922cdcb7298443aac11f594c412404a299fe9 /actionpack | |
parent | 594c7dc2588a8bd13a88439a6d97be721adac37b (diff) | |
download | rails-fd85bec26148e05a8e3d546c2827c889f9a9f8f8.tar.gz rails-fd85bec26148e05a8e3d546c2827c889f9a9f8f8.tar.bz2 rails-fd85bec26148e05a8e3d546c2827c889f9a9f8f8.zip |
[ci skip] Fix more quotes in direct/resolve docs
Also correct use of `direct class:` to `resolve` in example.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index cded23ac36..10d733e477 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -2034,7 +2034,7 @@ module ActionDispatch # end # # direct :main do - # { controller: 'pages', action: 'index', subdomain: 'www' } + # { controller: "pages", action: "index", subdomain: "www" } # end # # The return value from the block passed to `direct` must be a valid set of @@ -2042,7 +2042,7 @@ module ActionDispatch # be one of the following: # # * A string, which is treated as a generated url - # * A hash, e.g. { controller: 'pages', action: 'index' } + # * A hash, e.g. { controller: "pages", action: "index" } # * An array, which is passed to `polymorphic_url` # * An Active Model instance # * An Active Model class @@ -2110,7 +2110,7 @@ module ActionDispatch # You can pass options to a polymorphic mapping - the arity for the block # needs to be two as the instance is passed as the first argument, e.g: # - # direct class: "Basket", anchor: "items" do |basket, options| + # resolve "Basket", anchor: "items" do |basket, options| # [:basket, options] # end # |