diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2013-09-13 00:22:42 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2013-09-13 00:22:42 +0530 |
commit | d262773ab7f0aae5de2d354ac2eca168e95b653d (patch) | |
tree | a8d6c05c8e47d318ed7ec6ca5c2a74c09ce8c176 /actionpack/lib | |
parent | ab5cd54b7e791f8419f689d1bef5394890268a6f (diff) | |
parent | 3199b842014b6b384adfa8a9d69d48995b5383ef (diff) | |
download | rails-d262773ab7f0aae5de2d354ac2eca168e95b653d.tar.gz rails-d262773ab7f0aae5de2d354ac2eca168e95b653d.tar.bz2 rails-d262773ab7f0aae5de2d354ac2eca168e95b653d.zip |
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index cf8a066bcf..869fd624db 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -429,10 +429,10 @@ module ActionDispatch # # match 'json_only', constraints: { format: 'json' } # - # class Blacklist + # class Whitelist # def matches?(request) request.remote_ip == '1.2.3.4' end # end - # match 'path', to: 'c#a', constraints: Blacklist.new + # match 'path', to: 'c#a', constraints: Whitelist.new # # See <tt>Scoping#constraints</tt> for more examples with its scope # equivalent. @@ -1063,18 +1063,18 @@ module ActionDispatch # a singular resource to map /profile (rather than /profile/:id) to # the show action: # - # resource :geocoder + # resource :profile # # creates six different routes in your application, all mapping to - # the +GeoCoders+ controller (note that the controller is named after + # the +Profiles+ controller (note that the controller is named after # the plural): # - # GET /geocoder/new - # POST /geocoder - # GET /geocoder - # GET /geocoder/edit - # PATCH/PUT /geocoder - # DELETE /geocoder + # GET /profile/new + # POST /profile + # GET /profile + # GET /profile/edit + # PATCH/PUT /profile + # DELETE /profile # # === Options # Takes same options as +resources+. |