Skip to content
This repository
Browse code

Spelling corrections in the guides.

  • Loading branch information...
commit 91b19186f7161bc2114613b15460fb29d632aff7 1 parent ace7508
Evan Farrar authored May 29, 2011
2  railties/guides/source/ajax_on_rails.textile
Source Rendered
@@ -72,7 +72,7 @@ link_to_remote "Add to cart",
72 72
 
73 73
 If the server returns 200, the output of the above example is equivalent to our first, simple one. However, in case of error, the element with the DOM id +error+ is updated rather than the +cart+ element.
74 74
 
75  
-** *position* By default (i.e. when not specifying this option, like in the examples before) the repsonse is injected into the element with the specified DOM id, replacing the original content of the element (if there was any). You might want to alter this behavior by keeping the original content - the only question is where to place the new content? This can specified by the +position+ parameter, with four possibilities:
  75
+** *position* By default (i.e. when not specifying this option, like in the examples before) the response is injected into the element with the specified DOM id, replacing the original content of the element (if there was any). You might want to alter this behavior by keeping the original content - the only question is where to place the new content? This can specified by the +position+ parameter, with four possibilities:
76 76
 *** +:before+ Inserts the response text just before the target element. More precisely, it creates a text node from the response and inserts it as the left sibling of the target element.
77 77
 *** +:after+ Similar behavior to +:before+, but in this case the response is inserted after the target element.
78 78
 *** +:top+ Inserts the text into the target element, before it's original content. If the target element was empty, this is equivalent with not specifying +:position+ at all.
8  railties/guides/source/asset_pipeline.textile
Source Rendered
@@ -4,8 +4,8 @@ This guide will cover the ideology of the asset pipeline introduced in Rails 3.1
4 4
 By referring to this guide you will be able to:
5 5
 
6 6
 * Properly organize your application assets
7  
-* Understand the benefits of the asset pipline
8  
-* Adding a preproccessor to the pipeline
  7
+* Understand the benefits of the asset pipeline
  8
+* Adding a preprocessor to the pipeline
9 9
 * Package assets with a gem
10 10
 
11 11
 endprologue.
@@ -24,7 +24,7 @@ h4. Default Files Loaded
24 24
 
25 25
 h4. Directives
26 26
 
27  
-h4. Stacking Preproccessors
  27
+h4. Stacking Preprocessors
28 28
 
29 29
 h3. Packaging Assets with Your Gems
30 30
 
@@ -32,4 +32,4 @@ You may find it useful to package certain assets with your gem. A simple example
32 32
 
33 33
 h3. More on Sprockets
34 34
 
35  
-Sprockets is the engine that handles the asset pipeline in Rails 3.1 and above. Their offical website is available at "http://getsprockets.org/":http://getsprockets.org/ and the source code is "on github":https://github.com/sstephenson/sprockets.
  35
+Sprockets is the engine that handles the asset pipeline in Rails 3.1 and above. Their official website is available at "http://getsprockets.org/":http://getsprockets.org/ and the source code is "on github":https://github.com/sstephenson/sprockets.
2  railties/guides/source/contribute.textile
Source Rendered
@@ -14,7 +14,7 @@ h3. How to Contribute?
14 14
 * Sample format : "Active Record Associations":https://github.com/lifo/docrails/blob/3e56a3832415476fdd1cb963980d0ae390ac1ed3/railties/guides/source/association_basics.textile.
15 15
 * Sample output : "Active Record Associations":association_basics.html.
16 16
 * You can build the Guides during testing by running +bundle exec rake generate_guides+ in the +railties+ directory.
17  
-* You're encouraged to validate XHTML for the generated guides before commiting your changes by running +bundle exec rake validate_guides+ in the +railties+ directory.
  17
+* You're encouraged to validate XHTML for the generated guides before committing your changes by running +bundle exec rake validate_guides+ in the +railties+ directory.
18 18
 * Edge guides "can be consulted online":http://edgeguides.rubyonrails.org/. That website is generated periodically from docrails.
19 19
 
20 20
 h3. What to Contribute?
2  railties/guides/source/contributing_to_ruby_on_rails.textile
Source Rendered
@@ -309,7 +309,7 @@ Rails follows a simple set of coding style conventions.
309 309
 * a = b and not a=b.
310 310
 * Follow the conventions you see used in the source already.
311 311
 
312  
-These are some guidelines and please use your best judgement in using them.
  312
+These are some guidelines and please use your best judgment in using them.
313 313
 
314 314
 h4. Sanity Check
315 315
 
2  railties/guides/source/form_helpers.textile
Source Rendered
@@ -545,7 +545,7 @@ NOTE: In many cases the built-in date pickers are clumsy as they do not aid the
545 545
 
546 546
 h4. Individual Components
547 547
 
548  
-Occasionally you need to display just a single date component such as a year or a month. Rails provides a series of helpers for this, one for each component +select_year+, +select_month+, +select_day+, +select_hour+, +select_minute+, +select_second+. These helpers are fairly straightforward. By default they will generate an input field named after the time component (for example "year" for +select_year+, "month" for +select_month+ etc.) although this can be overriden with the  +:field_name+ option. The +:prefix+ option works in the same way that it does for +select_date+ and +select_time+ and has the same default value.
  548
+Occasionally you need to display just a single date component such as a year or a month. Rails provides a series of helpers for this, one for each component +select_year+, +select_month+, +select_day+, +select_hour+, +select_minute+, +select_second+. These helpers are fairly straightforward. By default they will generate an input field named after the time component (for example "year" for +select_year+, "month" for +select_month+ etc.) although this can be overridden with the  +:field_name+ option. The +:prefix+ option works in the same way that it does for +select_date+ and +select_time+ and has the same default value.
549 549
 
550 550
 The first parameter specifies which value should be selected and can either be an instance of a Date, Time or DateTime, in which case the relevant component will be extracted, or a numerical value. For example
551 551
 
2  railties/guides/source/initialization.textile
Source Rendered
@@ -865,7 +865,7 @@ This method collects the initializers from the ancestors of this class and adds
865 865
   end
866 866
 </ruby>
867 867
 
868  
-So this <tt>+</tt> method is overriden to return a new collection comprising of the existing collection as an array and then using the <tt>Array#+</tt> method combines these two collections, returning a "super" +Collection+ object. In this case, the only initializer that's going to be in this new +Collection+ object is the +i18n.callbacks+ initializer.
  868
+So this <tt>+</tt> method is overridden to return a new collection comprising of the existing collection as an array and then using the <tt>Array#+</tt> method combines these two collections, returning a "super" +Collection+ object. In this case, the only initializer that's going to be in this new +Collection+ object is the +i18n.callbacks+ initializer.
869 869
 
870 870
 The next method to be called after this +initializer+ method is the +after_initialize+ method on the +config+ object, which is defined like this:
871 871
 
2  railties/guides/source/layouts_and_rendering.textile
Source Rendered
@@ -123,7 +123,7 @@ Cache-Control: no-cache
123 123
  $
124 124
 </shell>
125 125
 
126  
-We see there is an empty response (no data after the +Cache-Control+ line), but the request was successful because Rails has set the response to 200 OK. You can set the +:status+ option on render to change this response. Rendering nothing can be useful for AJAX requests where all you want to send back to the browser is an acknowledgement that the request was completed.
  126
+We see there is an empty response (no data after the +Cache-Control+ line), but the request was successful because Rails has set the response to 200 OK. You can set the +:status+ option on render to change this response. Rendering nothing can be useful for AJAX requests where all you want to send back to the browser is an acknowledgment that the request was completed.
127 127
 
128 128
 TIP: You should probably be using the +head+ method, discussed later in this guide, instead of +render :nothing+. This provides additional flexibility and makes it explicit that you're only generating HTTP headers.
129 129
 
2  railties/guides/source/performance_testing.textile
@@ -276,7 +276,7 @@ measurement,created_at,app,rails,ruby,platform
276 276
 
277 277
 h5(#output-profiling). Profiling
278 278
 
279  
-In profiling mode, performance tests can generate multiple types of outputs. The command line output is always presented but support for the others is dependant on the interpreter in use. A brief description of each type and their availability across interpreters is given below.
  279
+In profiling mode, performance tests can generate multiple types of outputs. The command line output is always presented but support for the others is dependent on the interpreter in use. A brief description of each type and their availability across interpreters is given below.
280 280
 
281 281
 h6. Command Line
282 282
 

0 notes on commit 91b1918

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