Skip to content
This repository
Browse code

Remove extra white spaces on ActionPack docs.

  • Loading branch information...
commit fcdb5dc55729f4939e9a5064dfee8eef2dec4316 1 parent c6ec7e8
Sebastian Martinez authored May 23, 2011

Showing 22 changed files with 53 additions and 53 deletions. Show diff stats Hide diff stats

  1. 2  actionpack/lib/abstract_controller/base.rb
  2. 2  actionpack/lib/abstract_controller/helpers.rb
  3. 4  actionpack/lib/action_controller/caching/actions.rb
  4. 6  actionpack/lib/action_controller/metal/data_streaming.rb
  5. 4  actionpack/lib/action_controller/metal/http_authentication.rb
  6. 6  actionpack/lib/action_controller/metal/request_forgery_protection.rb
  7. 2  actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb
  8. 4  actionpack/lib/action_dispatch/http/mime_type.rb
  9. 6  actionpack/lib/action_dispatch/http/request.rb
  10. 2  actionpack/lib/action_dispatch/middleware/cookies.rb
  11. 2  actionpack/lib/action_dispatch/routing/mapper.rb
  12. 2  actionpack/lib/action_dispatch/routing/url_for.rb
  13. 18  actionpack/lib/action_dispatch/testing/assertions/routing.rb
  14. 2  actionpack/lib/action_dispatch/testing/integration.rb
  15. 4  actionpack/lib/action_view/helpers/capture_helper.rb
  16. 2  actionpack/lib/action_view/helpers/date_helper.rb
  17. 8  actionpack/lib/action_view/helpers/form_options_helper.rb
  18. 2  actionpack/lib/action_view/helpers/form_tag_helper.rb
  19. 10  actionpack/lib/action_view/helpers/sanitize_helper.rb
  20. 2  actionpack/lib/action_view/helpers/tag_helper.rb
  21. 4  actionpack/lib/action_view/helpers/text_helper.rb
  22. 12  actionpack/lib/action_view/helpers/url_helper.rb
2  actionpack/lib/abstract_controller/base.rb
@@ -10,7 +10,7 @@ class ActionNotFound < StandardError; end
10 10
   # <tt>AbstractController::Base</tt> is a low-level API. Nobody should be
11 11
   # using it directly, and subclasses (like ActionController::Base) are
12 12
   # expected to provide their own +render+ method, since rendering means
13  
-  # different things depending on the context.  
  13
+  # different things depending on the context.
14 14
   class Base
15 15
     attr_internal :response_body
16 16
     attr_internal :action_name
2  actionpack/lib/abstract_controller/helpers.rb
@@ -67,7 +67,7 @@ def #{meth}(*args, &blk)
67 67
       #   helper FooHelper # => includes FooHelper
68 68
       #
69 69
       # When the argument is a string or symbol, the method will provide the "_helper" suffix, require the file
70  
-      # and include the module in the template class.  The second form illustrates how to include custom helpers
  70
+      # and include the module in the template class. The second form illustrates how to include custom helpers
71 71
       # when working with namespaced controllers, or other cases where the file containing the helper definition is not
72 72
       # in one of Rails' standard load paths:
73 73
       #   helper :foo             # => requires 'foo_helper' and includes FooHelper
4  actionpack/lib/action_controller/caching/actions.rb
@@ -39,8 +39,8 @@ module Caching
39 39
     # <tt>:action => 'list', :format => :xml</tt>.
40 40
     #
41 41
     # You can set modify the default action cache path by passing a
42  
-    # <tt>:cache_path</tt> option.  This will be passed directly to
43  
-    # <tt>ActionCachePath.path_for</tt>.  This is handy for actions with
  42
+    # <tt>:cache_path</tt> option. This will be passed directly to
  43
+    # <tt>ActionCachePath.path_for</tt>. This is handy for actions with
44 44
     # multiple possible routes that should be cached differently. If a
45 45
     # block is given, it is called with the current controller instance.
46 46
     #
6  actionpack/lib/action_controller/metal/data_streaming.rb
@@ -37,7 +37,7 @@ module DataStreaming
37 37
       #
38 38
       # The default Content-Type and Content-Disposition headers are
39 39
       # set to download arbitrary binary files in as many browsers as
40  
-      # possible.  IE versions 4, 5, 5.5, and 6 are all known to have
  40
+      # possible. IE versions 4, 5, 5.5, and 6 are all known to have
41 41
       # a variety of quirks (especially when downloading over SSL).
42 42
       #
43 43
       # Simple download:
@@ -58,8 +58,8 @@ module DataStreaming
58 58
       #
59 59
       # Also be aware that the document may be cached by proxies and browsers.
60 60
       # The Pragma and Cache-Control headers declare how the file may be cached
61  
-      # by intermediaries.  They default to require clients to validate with
62  
-      # the server before releasing cached responses.  See
  61
+      # by intermediaries. They default to require clients to validate with
  62
+      # the server before releasing cached responses. See
63 63
       # http://www.mnot.net/cache_docs/ for an overview of web caching and
64 64
       # http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
65 65
       # for the Cache-Control header spec.
4  actionpack/lib/action_controller/metal/http_authentication.rb
@@ -400,7 +400,7 @@ def request_http_token_authentication(realm = "Application")
400 400
       # the present token and options.
401 401
       #
402 402
       # controller      - ActionController::Base instance for the current request.
403  
-      # login_procedure - Proc to call if a token is present.  The Proc should
  403
+      # login_procedure - Proc to call if a token is present. The Proc should
404 404
       #                   take 2 arguments:
405 405
       #                     authenticate(controller) { |token, options| ... }
406 406
       #
@@ -413,7 +413,7 @@ def authenticate(controller, &login_procedure)
413 413
         end
414 414
       end
415 415
 
416  
-      # Parses the token and options out of the token authorization header.  If
  416
+      # Parses the token and options out of the token authorization header. If
417 417
       # the header looks like this:
418 418
       #   Authorization: Token token="abc", nonce="def"
419 419
       # Then the returned token is "abc", and the options is {:nonce => "def"}
6  actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -63,7 +63,7 @@ module ClassMethods
63 63
       #
64 64
       # Valid Options:
65 65
       #
66  
-      # * <tt>:only/:except</tt> - Passed to the <tt>before_filter</tt> call.  Set which actions are verified.
  66
+      # * <tt>:only/:except</tt> - Passed to the <tt>before_filter</tt> call. Set which actions are verified.
67 67
       def protect_from_forgery(options = {})
68 68
         self.request_forgery_protection_token ||= :authenticity_token
69 69
         prepend_before_filter :verify_authenticity_token, options
@@ -71,7 +71,7 @@ def protect_from_forgery(options = {})
71 71
     end
72 72
 
73 73
     protected
74  
-      # The actual before_filter that is used.  Modify this to change how you handle unverified requests.
  74
+      # The actual before_filter that is used. Modify this to change how you handle unverified requests.
75 75
       def verify_authenticity_token
76 76
         unless verified_request?
77 77
           logger.debug "WARNING: Can't verify CSRF token authenticity" if logger
@@ -83,7 +83,7 @@ def handle_unverified_request
83 83
         reset_session
84 84
       end
85 85
 
86  
-      # Returns true or false if a request is verified.  Checks:
  86
+      # Returns true or false if a request is verified. Checks:
87 87
       #
88 88
       # * is it a GET request?  Gets should be safe and idempotent
89 89
       # * Does the form_authenticity_token match the given token value from the params?
2  actionpack/lib/action_controller/vendor/html-scanner/html/sanitizer.rb
@@ -103,7 +103,7 @@ class WhiteListSanitizer < Sanitizer
103 103
     # Specifies the default Set of allowed shorthand css properties for the #sanitize and #sanitize_css helpers.
104 104
     self.shorthand_css_properties = Set.new(%w(background border margin padding))
105 105
 
106  
-    # Sanitizes a block of css code.  Used by #sanitize when it comes across a style attribute
  106
+    # Sanitizes a block of css code. Used by #sanitize when it comes across a style attribute
107 107
     def sanitize_css(style)
108 108
       # disallow urls
109 109
       style = style.to_s.gsub(/url\s*\(\s*[^\s)]+?\s*\)\s*/, ' ')
4  actionpack/lib/action_dispatch/http/mime_type.rb
@@ -47,7 +47,7 @@ class Type
47 47
     cattr_reader :html_types
48 48
 
49 49
     # These are the content types which browsers can generate without using ajax, flash, etc
50  
-    # i.e. following a link, getting an image or posting a form.  CSRF protection
  50
+    # i.e. following a link, getting an image or posting a form. CSRF protection
51 51
     # only needs to protect against these types.
52 52
     @@browser_generated_types = Set.new [:html, :url_encoded_form, :multipart_form, :text]
53 53
     cattr_reader :browser_generated_types
@@ -246,7 +246,7 @@ def =~(mime_type)
246 246
       end
247 247
     end
248 248
 
249  
-    # Returns true if Action Pack should check requests using this Mime Type for possible request forgery.  See
  249
+    # Returns true if Action Pack should check requests using this Mime Type for possible request forgery. See
250 250
     # ActionController::RequestForgeryProtection.
251 251
     def verify_request?
252 252
       @@browser_generated_types.include?(to_sym)
6  actionpack/lib/action_dispatch/http/request.rb
@@ -172,10 +172,10 @@ def ip
172 172
        )\.
173 173
     }x
174 174
 
175  
-    # Determines originating IP address.  REMOTE_ADDR is the standard
176  
-    # but will fail if the user is behind a proxy.  HTTP_CLIENT_IP and/or
  175
+    # Determines originating IP address. REMOTE_ADDR is the standard
  176
+    # but will fail if the user is behind a proxy. HTTP_CLIENT_IP and/or
177 177
     # HTTP_X_FORWARDED_FOR are set by proxies so check for these if
178  
-    # REMOTE_ADDR is a proxy.  HTTP_X_FORWARDED_FOR may be a comma-
  178
+    # REMOTE_ADDR is a proxy. HTTP_X_FORWARDED_FOR may be a comma-
179 179
     # delimited list in the case of multiple chained proxies; the last
180 180
     # address which is not trusted is the originating IP.
181 181
     def remote_ip
2  actionpack/lib/action_dispatch/middleware/cookies.rb
@@ -59,7 +59,7 @@ def cookie_jar
59 59
   # The option symbols for setting cookies are:
60 60
   #
61 61
   # * <tt>:value</tt> - The cookie's value or list of values (as an array).
62  
-  # * <tt>:path</tt> - The path for which this cookie applies.  Defaults to the root
  62
+  # * <tt>:path</tt> - The path for which this cookie applies. Defaults to the root
63 63
   #   of the application.
64 64
   # * <tt>:domain</tt> - The domain for which this cookie applies so you can
65 65
   #   restrict to the domain level. If you use a schema like www.example.com
2  actionpack/lib/action_dispatch/routing/mapper.rb
@@ -335,7 +335,7 @@ def root(options = {})
335 335
         #
336 336
         # [:on]
337 337
         #   Shorthand for wrapping routes in a specific RESTful context. Valid
338  
-        #   values are +:member+, +:collection+, and +:new+.  Only use within
  338
+        #   values are +:member+, +:collection+, and +:new+. Only use within
339 339
         #   <tt>resource(s)</tt> block. For example:
340 340
         #
341 341
         #      resource :bar do
2  actionpack/lib/action_dispatch/routing/url_for.rb
@@ -108,7 +108,7 @@ def url_options
108 108
       end
109 109
 
110 110
       # Generate a url based on the options provided, default_url_options and the
111  
-      # routes defined in routes.rb.  The following options are supported:
  111
+      # routes defined in routes.rb. The following options are supported:
112 112
       #
113 113
       # * <tt>:only_path</tt> - If true, the relative url is returned. Defaults to +false+.
114 114
       # * <tt>:protocol</tt> - The protocol to connect to. Defaults to 'http'.
18  actionpack/lib/action_dispatch/testing/assertions/routing.rb
@@ -7,18 +7,18 @@ module Assertions
7 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  
-      # Pass a hash in the second argument (+path+) to specify the request method.  This is useful for routes
13  
-      # requiring a specific HTTP method.  The hash should contain a :path with the incoming request path
  12
+      # Pass a hash in the second argument (+path+) to specify the request method. This is useful for routes
  13
+      # requiring a specific HTTP method. The hash should contain a :path with the incoming request path
14 14
       # and a :method containing the required HTTP verb.
15 15
       #
16 16
       #   # assert that POSTing to /items will call the create action on ItemsController
17 17
       #   assert_recognizes({:controller => 'items', :action => 'create'}, {:path => 'items', :method => :post})
18 18
       #
19  
-      # You can also pass in +extras+ with a hash containing URL parameters that would normally be in the query string.  This can be used
20  
-      # to assert that values in the query string string will end up in the params hash correctly.  To test query strings you must use the
21  
-      # extras argument, appending the query string on the path directly will not work.  For example:
  19
+      # You can also pass in +extras+ with a hash containing URL parameters that would normally be in the query string. This can be used
  20
+      # to assert that values in the query string string will end up in the params hash correctly. To test query strings you must use the
  21
+      # extras argument, appending the query string on the path directly will not work. For example:
22 22
       #
23 23
       #   # assert that a path of '/items/list/1?view=print' returns the correct options
24 24
       #   assert_recognizes({:controller => 'items', :action => 'list', :id => '1', :view => 'print'}, 'items/list/1', { :view => "print" })
@@ -49,7 +49,7 @@ def assert_recognizes(expected_options, path, extras={}, message=nil)
49 49
         assert_equal(expected_options, request.path_parameters, msg)
50 50
       end
51 51
 
52  
-      # Asserts that the provided options can be used to generate the provided path.  This is the inverse of +assert_recognizes+.
  52
+      # Asserts that the provided options can be used to generate the provided path. This is the inverse of +assert_recognizes+.
53 53
       # The +extras+ parameter is used to tell the request the names and values of additional request parameters that would be in
54 54
       # a query string. The +message+ parameter allows you to specify a custom error message for assertion failures.
55 55
       #
@@ -92,10 +92,10 @@ def assert_generates(expected_path, options, defaults={}, extras = {}, message=n
92 92
       end
93 93
 
94 94
       # Asserts that path and options match both ways; in other words, it verifies that <tt>path</tt> generates
95  
-      # <tt>options</tt> and then that <tt>options</tt> generates <tt>path</tt>.  This essentially combines +assert_recognizes+
  95
+      # <tt>options</tt> and then that <tt>options</tt> generates <tt>path</tt>. This essentially combines +assert_recognizes+
96 96
       # and +assert_generates+ into one step.
97 97
       #
98  
-      # The +extras+ hash allows you to specify options that would normally be provided as a query string to the action.  The
  98
+      # The +extras+ hash allows you to specify options that would normally be provided as a query string to the action. The
99 99
       # +message+ parameter allows you to specify a custom error message to display upon failure.
100 100
       #
101 101
       # ==== Examples
2  actionpack/lib/action_dispatch/testing/integration.rb
@@ -62,7 +62,7 @@ def head(path, parameters = nil, headers = nil)
62 62
       #
63 63
       # The request_method is +:get+, +:post+, +:put+, +:delete+ or +:head+; the
64 64
       # parameters are +nil+, a hash, or a url-encoded or multipart string;
65  
-      # the headers are a hash.  Keys are automatically upcased and prefixed
  65
+      # the headers are a hash. Keys are automatically upcased and prefixed
66 66
       # with 'HTTP_' if not already.
67 67
       def xml_http_request(request_method, path, parameters = nil, headers = nil)
68 68
         headers ||= {}
4  actionpack/lib/action_view/helpers/capture_helper.rb
@@ -27,7 +27,7 @@ module CaptureHelper
27 27
       #     "The current timestamp is #{Time.now}."
28 28
       #   end
29 29
       #
30  
-      # You can then use that variable anywhere else.  For example:
  30
+      # You can then use that variable anywhere else. For example:
31 31
       #
32 32
       #   <html>
33 33
       #   <head><title><%= @greeting %></title></head>
@@ -76,7 +76,7 @@ def capture(*args)
76 76
       #
77 77
       #   <%= stored_content %>
78 78
       #
79  
-      # You can use the <tt>yield</tt> syntax alongside an existing call to <tt>yield</tt> in a layout.  For example:
  79
+      # You can use the <tt>yield</tt> syntax alongside an existing call to <tt>yield</tt> in a layout. For example:
80 80
       #
81 81
       #   <%# This is the layout %>
82 82
       #   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
2  actionpack/lib/action_view/helpers/date_helper.rb
@@ -517,7 +517,7 @@ def select_hour(datetime, options = {}, html_options = {})
517 517
       #   # that is named 'due' rather than 'day'.
518 518
       #   select_day(my_time, :field_name => 'due')
519 519
       #
520  
-      #   # Generates a select field for days with a custom prompt.  Use <tt>:prompt => true</tt> for a
  520
+      #   # Generates a select field for days with a custom prompt. Use <tt>:prompt => true</tt> for a
521 521
       #   # generic prompt.
522 522
       #   select_day(5, :prompt => 'Choose day')
523 523
       #
8  actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -125,7 +125,7 @@ module FormOptionsHelper
125 125
       # This allows the user to submit a form page more than once with the expected results of creating multiple records.
126 126
       # In addition, this allows a single partial to be used to generate form inputs for both edit and create forms.
127 127
       #
128  
-      # By default, <tt>post.person_id</tt> is the selected option.  Specify <tt>:selected => value</tt> to use a different selection
  128
+      # By default, <tt>post.person_id</tt> is the selected option. Specify <tt>:selected => value</tt> to use a different selection
129 129
       # or <tt>:selected => nil</tt> to leave all options unselected. Similarly, you can specify values to be disabled in the option
130 130
       # tags by specifying the <tt>:disabled</tt> option. This can either be a single value or an array of values to be disabled.
131 131
       def select(object, method, choices, options = {}, html_options = {})
@@ -255,7 +255,7 @@ def time_zone_select(object, method, priority_zones = nil, options = {}, html_op
255 255
       # Accepts a container (hash, array, enumerable, your type) and returns a string of option tags. Given a container
256 256
       # where the elements respond to first and last (such as a two-element array), the "lasts" serve as option values and
257 257
       # the "firsts" as option text. Hashes are turned into this form automatically, so the keys become "firsts" and values
258  
-      # become lasts. If +selected+ is specified, the matching "last" or element will get the selected option-tag.  +selected+
  258
+      # become lasts. If +selected+ is specified, the matching "last" or element will get the selected option-tag. +selected+
259 259
       # may also be an array of values to be selected when using a multiple select.
260 260
       #
261 261
       # Examples (call, result):
@@ -406,13 +406,13 @@ def option_groups_from_collection_for_select(collection, group_method, group_lab
406 406
       # wraps them with <tt><optgroup></tt> tags.
407 407
       #
408 408
       # Parameters:
409  
-      # * +grouped_options+ - Accepts a nested array or hash of strings.  The first value serves as the
  409
+      # * +grouped_options+ - Accepts a nested array or hash of strings. The first value serves as the
410 410
       #   <tt><optgroup></tt> label while the second value must be an array of options. The second value can be a
411 411
       #   nested array of text-value pairs. See <tt>options_for_select</tt> for more info.
412 412
       #    Ex. ["North America",[["United States","US"],["Canada","CA"]]]
413 413
       # * +selected_key+ - A value equal to the +value+ attribute for one of the <tt><option></tt> tags,
414 414
       #   which will have the +selected+ attribute set. Note: It is possible for this value to match multiple options
415  
-      #   as you might have the same option in multiple groups.  Each will then get <tt>selected="selected"</tt>.
  415
+      #   as you might have the same option in multiple groups. Each will then get <tt>selected="selected"</tt>.
416 416
       # * +prompt+ - set to true or a prompt string. When the select element doesn't have a value yet, this
417 417
       #   prepends an option with a generic prompt - "Please select" - or the given prompt string.
418 418
       #
2  actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -204,7 +204,7 @@ def hidden_field_tag(name, value = nil, options = {})
204 204
         text_field_tag(name, value, options.stringify_keys.update("type" => "hidden"))
205 205
       end
206 206
 
207  
-      # Creates a file upload field.  If you are using file uploads then you will also need
  207
+      # Creates a file upload field. If you are using file uploads then you will also need
208 208
       # to set the multipart option for the form tag:
209 209
       #
210 210
       #   <%= form_tag '/upload', :multipart => true do %>
10  actionpack/lib/action_view/helpers/sanitize_helper.rb
@@ -14,13 +14,13 @@ module SanitizeHelper
14 14
       #
15 15
       # It also strips href/src tags with invalid protocols, like javascript: especially.
16 16
       # It does its best to counter any  tricks that hackers may use, like throwing in
17  
-      # unicode/ascii/hex values to get past the javascript: filters.  Check out
  17
+      # unicode/ascii/hex values to get past the javascript: filters. Check out
18 18
       # the extensive test suite.
19 19
       #
20 20
       #   <%= sanitize @article.body %>
21 21
       #
22 22
       # You can add or remove tags/attributes if you want to customize it a bit.
23  
-      # See ActionView::Base for full docs on the available options.  You can add
  23
+      # See ActionView::Base for full docs on the available options. You can add
24 24
       # tags/attributes for single uses of +sanitize+ by passing either the
25 25
       # <tt>:attributes</tt> or <tt>:tags</tt> options:
26 26
       #
@@ -66,7 +66,7 @@ def sanitize_css(style)
66 66
         self.class.white_list_sanitizer.sanitize_css(style)
67 67
       end
68 68
 
69  
-      # Strips all HTML tags from the +html+, including comments.  This uses the
  69
+      # Strips all HTML tags from the +html+, including comments. This uses the
70 70
       # html-scanner tokenizer and so its HTML parsing ability is limited by
71 71
       # that of html-scanner.
72 72
       #
@@ -142,7 +142,7 @@ def sanitized_protocol_separator=(value)
142 142
           white_list_sanitizer.protocol_separator = value
143 143
         end
144 144
 
145  
-        # Gets the HTML::FullSanitizer instance used by +strip_tags+.  Replace with
  145
+        # Gets the HTML::FullSanitizer instance used by +strip_tags+. Replace with
146 146
         # any object that responds to +sanitize+.
147 147
         #
148 148
         #   class Application < Rails::Application
@@ -153,7 +153,7 @@ def full_sanitizer
153 153
           @full_sanitizer ||= HTML::FullSanitizer.new
154 154
         end
155 155
 
156  
-        # Gets the HTML::LinkSanitizer instance used by +strip_links+.  Replace with
  156
+        # Gets the HTML::LinkSanitizer instance used by +strip_links+. Replace with
157 157
         # any object that responds to +sanitize+.
158 158
         #
159 159
         #   class Application < Rails::Application
2  actionpack/lib/action_view/helpers/tag_helper.rb
@@ -94,7 +94,7 @@ def content_tag(name, content_or_options_with_block = nil, options = nil, escape
94 94
         end
95 95
       end
96 96
 
97  
-      # Returns a CDATA section with the given +content+.  CDATA sections
  97
+      # Returns a CDATA section with the given +content+. CDATA sections
98 98
       # are used to escape blocks of text containing characters which would
99 99
       # otherwise be recognized as markup. CDATA sections begin with the string
100 100
       # <tt><![CDATA[</tt> and end with (and may not contain) the string <tt>]]></tt>.
4  actionpack/lib/action_view/helpers/text_helper.rb
@@ -232,7 +232,7 @@ def word_wrap(text, *args)
232 232
       # considered as a linebreak and a <tt><br /></tt> tag is appended. This
233 233
       # method does not remove the newlines from the +text+.
234 234
       #
235  
-      # You can pass any HTML attributes into <tt>html_options</tt>.  These
  235
+      # You can pass any HTML attributes into <tt>html_options</tt>. These
236 236
       # will be added to all created paragraphs.
237 237
       #
238 238
       # ==== Options
@@ -267,7 +267,7 @@ def simple_format(text, html_options={}, options={})
267 267
 
268 268
       # Creates a Cycle object whose _to_s_ method cycles through elements of an
269 269
       # array every time it is called. This can be used for example, to alternate
270  
-      # classes for table rows.  You can use named cycles to allow nesting in loops.
  270
+      # classes for table rows. You can use named cycles to allow nesting in loops.
271 271
       # Passing a Hash as the last parameter with a <tt>:name</tt> key will create a
272 272
       # named cycle. The default name for a cycle without a +:name+ key is
273 273
       # <tt>"default"</tt>. You can manually reset a cycle by calling reset_cycle
12  actionpack/lib/action_view/helpers/url_helper.rb
@@ -160,7 +160,7 @@ def url_for(options = {})
160 160
       #
161 161
       # ==== Examples
162 162
       # Because it relies on +url_for+, +link_to+ supports both older-style controller/action/id arguments
163  
-      # and newer RESTful routes.  Current Rails style favors RESTful routes whenever possible, so base
  163
+      # and newer RESTful routes. Current Rails style favors RESTful routes whenever possible, so base
164 164
       # your application on resources and use
165 165
       #
166 166
       #   link_to "Profile", profile_path(@profile)
@@ -348,7 +348,7 @@ def button_to(name, options = {}, html_options = {})
348 348
       # Creates a link tag of the given +name+ using a URL created by the set of
349 349
       # +options+ unless the current request URI is the same as the links, in
350 350
       # which case only the name is returned (or the given block is yielded, if
351  
-      # one exists).  You can give +link_to_unless_current+ a block which will
  351
+      # one exists). You can give +link_to_unless_current+ a block which will
352 352
       # specialize the default behavior (e.g., show a "Start Here" link rather
353 353
       # than the link's text).
354 354
       #
@@ -375,7 +375,7 @@ def button_to(name, options = {}, html_options = {})
375 375
       #   </ul>
376 376
       #
377 377
       # The implicit block given to +link_to_unless_current+ is evaluated if the current
378  
-      # action is the action given.  So, if we had a comments page and wanted to render a
  378
+      # action is the action given. So, if we had a comments page and wanted to render a
379 379
       # "Go Back" link instead of a link to the comments page, we could do something like this...
380 380
       #
381 381
       #    <%=
@@ -579,7 +579,7 @@ def current_page?(options)
579 579
         url_string = url_for(options)
580 580
 
581 581
         # We ignore any extra parameters in the request_uri if the
582  
-        # submitted url doesn't have any either.  This lets the function
  582
+        # submitted url doesn't have any either. This lets the function
583 583
         # work with things like ?order=asc
584 584
         if url_string.index("?")
585 585
           request_uri = request.fullpath
@@ -641,7 +641,7 @@ def array_or_string_for_javascript(option)
641 641
 
642 642
         # Processes the +html_options+ hash, converting the boolean
643 643
         # attributes from true/false form into the form required by
644  
-        # HTML/XHTML.  (An attribute is considered to be boolean if
  644
+        # HTML/XHTML. (An attribute is considered to be boolean if
645 645
         # its name is listed in the given +bool_attrs+ array.)
646 646
         #
647 647
         # More specifically, for each boolean attribute in +html_options+
@@ -651,7 +651,7 @@ def array_or_string_for_javascript(option)
651 651
         #
652 652
         # if the associated +bool_value+ evaluates to true, it is
653 653
         # replaced with the attribute's name; otherwise the attribute is
654  
-        # removed from the +html_options+ hash.  (See the XHTML 1.0 spec,
  654
+        # removed from the +html_options+ hash. (See the XHTML 1.0 spec,
655 655
         # section 4.5 "Attribute Minimization" for more:
656 656
         # http://www.w3.org/TR/xhtml1/#h-4.5)
657 657
         #

0 notes on commit fcdb5dc

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