Skip to content
This repository
Browse code

escape constants that should not be linked to

  • Loading branch information...
commit 4a56f8f3145e396c9932be83d563fd75219c1f4d 1 parent 76c5693
Joost Baaij authored August 27, 2010
2  actionpack/lib/action_dispatch/http/mime_negotiation.rb
@@ -32,7 +32,7 @@ def accepts
32 32
         end
33 33
       end
34 34
 
35  
-      # Returns the Mime type for the \format used in the request.
  35
+      # Returns the MIME type for the \format used in the request.
36 36
       #
37 37
       #   GET /posts/5.xml   | request.format => Mime::XML
38 38
       #   GET /posts/5.xhtml | request.format => Mime::HTML
4  actionpack/lib/action_dispatch/http/url.rb
... ...
@@ -1,7 +1,7 @@
1 1
 module ActionDispatch
2 2
   module Http
3 3
     module URL
4  
-      # Returns the complete URL used for this request.
  4
+      # Returns the complete \URL used for this request.
5 5
       def url
6 6
         protocol + host_with_port + fullpath
7 7
       end
@@ -96,7 +96,7 @@ def subdomain(tld_length = 1)
96 96
       end
97 97
 
98 98
       # Returns the request URI, accounting for server idiosyncrasies.
99  
-      # WEBrick includes the full URL. IIS leaves REQUEST_URI blank.
  99
+      # WEBrick includes the full \URL. IIS leaves REQUEST_URI blank.
100 100
       def request_uri
101 101
         ActiveSupport::Deprecation.warn "Using #request_uri is deprecated. Use fullpath instead.", caller
102 102
         fullpath
2  actionpack/lib/action_dispatch/testing/assertions/dom.rb
@@ -3,7 +3,7 @@
3 3
 module ActionDispatch
4 4
   module Assertions
5 5
     module DomAssertions
6  
-      # Test two HTML strings for equivalency (e.g., identical up to reordering of attributes)
  6
+      # \Test two HTML strings for equivalency (e.g., identical up to reordering of attributes)
7 7
       #
8 8
       # ==== Examples
9 9
       #
10  actionpack/lib/action_dispatch/testing/assertions/response.rb
... ...
@@ -1,6 +1,6 @@
1 1
 module ActionDispatch
2 2
   module Assertions
3  
-    # A small suite of assertions that test responses from Rails applications.
  3
+    # A small suite of assertions that test responses from \Rails applications.
4 4
     module ResponseAssertions
5 5
       extend ActiveSupport::Concern
6 6
 
@@ -18,8 +18,8 @@ module ResponseAssertions
18 18
       # * <tt>:missing</tt>   - Status code was 404
19 19
       # * <tt>:error</tt>     - Status code was in the 500-599 range
20 20
       #
21  
-      # You can also pass an explicit status number like assert_response(501)
22  
-      # or its symbolic equivalent assert_response(:not_implemented).
  21
+      # You can also pass an explicit status number like <tt>assert_response(501)</tt>
  22
+      # or its symbolic equivalent <tt>assert_response(:not_implemented)</tt>.
23 23
       # See ActionDispatch::StatusCodes for a full list.
24 24
       #
25 25
       # ==== Examples
@@ -45,8 +45,8 @@ def assert_response(type, message = nil)
45 45
       end
46 46
 
47 47
       # Assert that the redirection options passed in match those of the redirect called in the latest action.
48  
-      # This match can be partial, such that assert_redirected_to(:controller => "weblog") will also
49  
-      # match the redirection of redirect_to(:controller => "weblog", :action => "show") and so on.
  48
+      # This match can be partial, such that <tt>assert_redirected_to(:controller => "weblog")</tt> will also
  49
+      # match the redirection of <tt>redirect_to(:controller => "weblog", :action => "show")</tt> and so on.
50 50
       #
51 51
       # ==== Examples
52 52
       #
4  actionpack/lib/action_dispatch/testing/assertions/routing.rb
@@ -4,10 +4,10 @@
4 4
 
5 5
 module ActionDispatch
6 6
   module Assertions
7  
-    # Suite of assertions to test routes generated by Rails and the handling of requests made to them.
  7
+    # Suite of assertions to test routes generated by \Rails and the handling of requests made to them.
8 8
     module RoutingAssertions
9 9
       # Asserts that the routing of the given +path+ was handled correctly and that the parsed options (given in the +expected_options+ hash)
10  
-      # match +path+.  Basically, it asserts that Rails recognizes the route given by +expected_options+.
  10
+      # match +path+.  Basically, it asserts that \Rails recognizes the route given by +expected_options+.
11 11
       #
12 12
       # Pass a hash in the second argument (+path+) to specify the request method.  This is useful for routes
13 13
       # requiring a specific HTTP method.  The hash should contain a :path with the incoming request path

0 notes on commit 4a56f8f

Please sign in to comment.
Something went wrong with that request. Please try again.