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
fixed-width font for symbols in AC::Request docs
Xavier Noria (author)
Thu Apr 10 07:38:30 -0700 2008
commit  c364ad6c8a2fd7e514a00380a8c57cca4fde025b
tree    b7dd6ab9f630a762cefbae4defa8ed14c95faef1
parent  b1402ff030f41f9d2cbbacdcaaf9488d71d243bf
...
15
16
17
18
 
19
20
21
...
28
29
30
31
32
 
 
33
34
35
36
37
38
 
39
40
41
42
43
 
44
45
46
47
48
 
49
50
51
52
53
 
54
55
56
57
58
59
 
 
60
61
62
...
15
16
17
 
18
19
20
21
...
28
29
30
 
 
31
32
33
34
35
36
37
 
38
39
40
41
42
 
43
44
45
46
47
 
48
49
50
51
52
 
53
54
55
56
57
 
 
58
59
60
61
62
0
@@ -15,7 +15,7 @@ module ActionController
0
     # such as { 'RAILS_ENV' => 'production' }.
0
     attr_reader :env
0
 
0
- # The true HTTP request method as a lowercase symbol, such as :get.
0
+ # The true HTTP request method as a lowercase symbol, such as <tt>:get</tt>.
0
     # UnknownHttpMethod is raised for invalid methods not listed in ACCEPTED_HTTP_METHODS.
0
     def request_method
0
       @request_method ||= begin
0
@@ -28,35 +28,35 @@ module ActionController
0
       end
0
     end
0
 
0
- # The HTTP request method as a lowercase symbol, such as :get.
0
- # Note, HEAD is returned as :get since the two are functionally
0
+ # The HTTP request method as a lowercase symbol, such as <tt>:get</tt>.
0
+ # Note, HEAD is returned as <tt>:get</tt> since the two are functionally
0
     # equivalent from the application's perspective.
0
     def method
0
       request_method == :head ? :get : request_method
0
     end
0
 
0
- # Is this a GET (or HEAD) request? Equivalent to request.method == :get
0
+ # Is this a GET (or HEAD) request? Equivalent to <tt>request.method == :get</tt>.
0
     def get?
0
       method == :get
0
     end
0
 
0
- # Is this a POST request? Equivalent to request.method == :post
0
+ # Is this a POST request? Equivalent to <tt>request.method == :post</tt>.
0
     def post?
0
       request_method == :post
0
     end
0
 
0
- # Is this a PUT request? Equivalent to request.method == :put
0
+ # Is this a PUT request? Equivalent to <tt>request.method == :put</tt>.
0
     def put?
0
       request_method == :put
0
     end
0
 
0
- # Is this a DELETE request? Equivalent to request.method == :delete
0
+ # Is this a DELETE request? Equivalent to <tt>request.method == :delete</tt>.
0
     def delete?
0
       request_method == :delete
0
     end
0
 
0
- # Is this a HEAD request? request.method sees HEAD as :get, so check the
0
- # HTTP method directly.
0
+ # Is this a HEAD request? <tt>request.method</tt> sees HEAD as <tt>:get</tt>,
0
+ # so check the HTTP method directly.
0
     def head?
0
       request_method == :head
0
     end

Comments

    No one has commented yet.