GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of lifo/doc-rails
Description: Repository for improving Rails documentation
Homepage: http://www.rubyonrails.org
Clone URL: git://github.com/zmalltalker/doc-rails.git
revised markup in AC::TestRequest docs
Xavier Noria (author)
Thu Apr 10 14:11:41 -0700 2008
commit  d9e2861e47d60ee50fcba1587f202898ab83dab2
tree    ce4ce3de9ef3fe8fdc3d39b7c436aa5c21620eec
parent  6c22ff9b5b3c7506c7b8e47b642ba1f6c216110c
...
465
466
467
468
 
 
469
470
471
 
 
 
472
473
474
...
483
484
485
486
 
487
488
489
490
491
492
493
494
495
496
 
 
 
 
 
 
 
 
 
497
498
499
...
465
466
467
 
468
469
470
471
 
472
473
474
475
476
477
...
486
487
488
 
489
490
 
 
 
 
 
 
 
 
 
491
492
493
494
495
496
497
498
499
500
501
502
0
@@ -465,10 +465,13 @@ module ActionController #:nodoc:
0
       return super
0
     end
0
     
0
- # Shortcut for ActionController::TestUploadedFile.new(Test::Unit::TestCase.fixture_path + path, type). Example:
0
+ # Shortcut for <tt>ActionController::TestUploadedFile.new(Test::Unit::TestCase.fixture_path + path, type)</tt>:
0
+ #
0
     # post :change_avatar, :avatar => fixture_file_upload('/files/spongebob.png', 'image/png')
0
     #
0
- # To upload binary files on Windows, pass :binary as the last parameter. This will not affect other platforms.
0
+ # To upload binary files on Windows, pass <tt>:binary</tt> as the last parameter.
0
+ # This will not affect other platforms:
0
+ #
0
     # post :change_avatar, :avatar => fixture_file_upload('/files/spongebob.png', 'image/png', :binary)
0
     def fixture_file_upload(path, mime_type = nil, binary = false)
0
       ActionController::TestUploadedFile.new(
0
@@ -483,17 +486,17 @@ module ActionController #:nodoc:
0
     # with a new RouteSet instance.
0
     #
0
     # The new instance is yielded to the passed block. Typically the block
0
- # will create some routes using map.draw { map.connect ... }:
0
+ # will create some routes using <tt>map.draw { map.connect ... }</tt>:
0
     #
0
- # with_routing do |set|
0
- # set.draw do |map|
0
- # map.connect ':controller/:action/:id'
0
- # assert_equal(
0
- # ['/content/10/show', {}],
0
- # map.generate(:controller => 'content', :id => 10, :action => 'show')
0
- # end
0
- # end
0
- # end
0
+ # with_routing do |set|
0
+ # set.draw do |map|
0
+ # map.connect ':controller/:action/:id'
0
+ # assert_equal(
0
+ # ['/content/10/show', {}],
0
+ # map.generate(:controller => 'content', :id => 10, :action => 'show')
0
+ # end
0
+ # end
0
+ # end
0
     #
0
     def with_routing
0
       real_routes = ActionController::Routing::Routes

Comments

    No one has commented yet.