diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-14 18:12:08 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-14 18:12:08 +0000 |
commit | 519c5c754775ae99a4ea872cd77f50c70c6884a6 (patch) | |
tree | deba578d88491bc2413291c8dc7686613e2357b6 /actionpack/lib/action_controller | |
parent | 3486d5400745e1bab6ab0a64a6b9f12a614b09e3 (diff) | |
download | rails-519c5c754775ae99a4ea872cd77f50c70c6884a6.tar.gz rails-519c5c754775ae99a4ea872cd77f50c70c6884a6.tar.bz2 rails-519c5c754775ae99a4ea872cd77f50c70c6884a6.zip |
Docfix (closes #10429) [jamesh/ssoroka]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8387 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index cf627448cc..edd4683f60 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -1048,19 +1048,19 @@ module ActionController end end - class RouteSet #:nodoc: + class RouteSet #:nodoc: # Mapper instances are used to build routes. The object passed to the draw # block in config/routes.rb is a Mapper instance. # # Mapper instances have relatively few instance methods, in order to avoid # clashes with named routes. - class Mapper #:nodoc: - def initialize(set) + class Mapper #:doc: + def initialize(set) #:nodoc: @set = set end # Create an unnamed route with the provided +path+ and +options+. See - # SomeHelpfulUrl for an introduction to routes. + # ActionController::Routing for an introduction to routes. def connect(path, options = {}) @set.add_route(path, options) end @@ -1070,7 +1070,7 @@ module ActionController named_route("root", '', options) end - def named_route(name, path, options = {}) + def named_route(name, path, options = {}) #:nodoc: @set.add_named_route(name, path, options) end @@ -1082,8 +1082,8 @@ module ActionController # :has_many => [ :tags, :images, :variants ] # end # - # This will create admin_products_url pointing to "admin/products", which will look for an Admin::ProductsController. - # It'll also create admin_product_tags_url pointing to "admin/products/#{product_id}/tags", which will look for + # This will create +admin_products_url+ pointing to "admin/products", which will look for an Admin::ProductsController. + # It'll also create +admin_product_tags_url+ pointing to "admin/products/#{product_id}/tags", which will look for # Admin::TagsController. def namespace(name, options = {}, &block) if options[:namespace] @@ -1093,8 +1093,7 @@ module ActionController end end - - def method_missing(route_name, *args, &proc) + def method_missing(route_name, *args, &proc) #:nodoc: super unless args.length >= 1 && proc.nil? @set.add_named_route(route_name, *args) end |