aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2006-06-05 14:14:32 +0000
committerJamis Buck <jamis@37signals.com>2006-06-05 14:14:32 +0000
commit7d88146e9ed908d663786a45c87cdeaa56135a39 (patch)
tree2803774ff9a5354c7cc848b13f2b45464f1a9462 /actionpack
parent100b994d90a819d5dd97c0f07bb40b78c489e4e1 (diff)
downloadrails-7d88146e9ed908d663786a45c87cdeaa56135a39.tar.gz
rails-7d88146e9ed908d663786a45c87cdeaa56135a39.tar.bz2
rails-7d88146e9ed908d663786a45c87cdeaa56135a39.zip
Fix documentation for with_routing to reflect new reality (closes #5281)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/CHANGELOG2
-rw-r--r--actionpack/lib/action_controller/test_process.rb16
2 files changed, 11 insertions, 7 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 98a65b1883..4e8dc42889 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Fix documentation for with_routing to reflect new reality. #5281 [rramdas@gmail.com]
+
* Rewind readable CGI params so others may reread them (such as CGI::Session when passing the session id in a multipart form). #210 [mklame@atxeu.com, matthew@walker.wattle.id.au]
* Added Mime::TEXT (text/plain) and Mime::ICS (text/calendar) as new default types [DHH]
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index 3fb6713f7b..730d9e3bfb 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -453,13 +453,15 @@ module ActionController #:nodoc:
# The new instance is yielded to the passed block. Typically the block
# will create some routes using map.draw { map.connect ... }:
#
- # with_routing do |set|
- # set.draw { set.connect ':controller/:id/:action' }
- # assert_equal(
- # ['/content/10/show', {}],
- # set.generate(:controller => 'content', :id => 10, :action => 'show')
- # )
- # end
+ # with_routing do |set|
+ # set.draw do |map|
+ # map.connect ':controller/:action/:id'
+ # assert_equal(
+ # ['/content/10/show', {}],
+ # map.generate(:controller => 'content', :id => 10, :action => 'show')
+ # end
+ # end
+ # end
#
def with_routing
real_routes = ActionController::Routing::Routes