aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-12-07 15:42:01 +0000
committerRick Olson <technoweenie@gmail.com>2006-12-07 15:42:01 +0000
commitc49cd7f18afb7fdc116290416d744c152018bb6d (patch)
tree1a0822eea83f97b8c0d0e051289aa700df99ab2f /actionpack/lib
parentd0fa4d3e3336df858b8aa03e0c67087ba0ee37cb (diff)
downloadrails-c49cd7f18afb7fdc116290416d744c152018bb6d.tar.gz
rails-c49cd7f18afb7fdc116290416d744c152018bb6d.tar.bz2
rails-c49cd7f18afb7fdc116290416d744c152018bb6d.zip
fix docs for singleton resources
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5702 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/resources.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/resources.rb b/actionpack/lib/action_controller/resources.rb
index 7ca9007072..a6ab9dcdba 100644
--- a/actionpack/lib/action_controller/resources.rb
+++ b/actionpack/lib/action_controller/resources.rb
@@ -276,10 +276,10 @@ module ActionController
# controllers and views. <tt>map.resource :account</tt> produces the following named routes and helpers:
#
# Named Route Helpers
- # account account_url(id), hash_for_account_url(id),
- # account_path(id), hash_for_account_path(id)
- # edit_account edit_account_url(id), hash_for_edit_account_url(id),
- # edit_account_path(id), hash_for_edit_account_path(id)
+ # account account_url, hash_for_account_url,
+ # account_path, hash_for_account_path
+ # edit_account edit_account_url, hash_for_edit_account_url,
+ # edit_account_path, hash_for_edit_account_path
def resource(*entities, &block)
options = entities.last.is_a?(Hash) ? entities.pop : { }
entities.each { |entity| map_singleton_resource entity, options.dup, &block }