Skip to content
This repository
Browse code

deleting trailing whitespaces

  • Loading branch information...
commit 6b65cd57ca20381e7d0f169d7b8cfd7db10e6efb 1 parent aebbbc7
Vijay Dev authored December 19, 2010
2  railties/guides/source/action_mailer_basics.textile
Source Rendered
@@ -248,7 +248,7 @@ It is possible to send email to one or more recipients in one email (for e.g. in
248 248
   class AdminMailer < ActionMailer::Base
249 249
     default :to => Admin.all.map(&:email).join(", "),
250 250
             :from => "notification@example.com"
251  
-  
  251
+
252 252
     def new_registration(user)
253 253
       @user = user
254 254
       mail(:subject => "New User Signup: #{@user.email}")
4  railties/guides/source/active_support_core_extensions.textile
Source Rendered
@@ -3389,12 +3389,12 @@ Modifies the datetime format output by the formatter class associated with this
3389 3389
 <ruby>
3390 3390
   class Logger::FormatWithTime < Logger::Formatter
3391 3391
     cattr_accessor(:datetime_format) { "%Y%m%d%H%m%S" }
3392  
-    
  3392
+
3393 3393
     def self.call(severity, timestamp, progname, msg)
3394 3394
       "#{timestamp.strftime(datetime_format)} -- #{String === msg ? msg : msg.inspect}\n"
3395 3395
     end
3396 3396
   end
3397  
-  
  3397
+
3398 3398
   logger = Logger.new("log/development.log")
3399 3399
   logger.formatter = Logger::FormatWithTime
3400 3400
   logger.info("<- is the current time")
8  railties/guides/source/configuring.textile
Source Rendered
@@ -276,11 +276,11 @@ h4. Configuring Action Dispatch
276 276
 
277 277
 * +config.action_dispatch.tld_length+ sets the TLD (top-level domain) length for the application. Defaults to +1+.
278 278
 
279  
-* +ActionDispatch::Callbacks.before+ takes a block of code to run before the request. 
  279
+* +ActionDispatch::Callbacks.before+ takes a block of code to run before the request.
280 280
 
281 281
 * +ActionDispatch::Callbacks.to_prepare+ takes a block to run after +ActionDispatch::Callbacks.before+, but before the request. Runs for every request in +development+ mode, but only once for +production+ or environments with +cache_classes+ set to +true+.
282 282
 
283  
-* +ActionDispatch::Callbacks.after+ takes a block of code to run after the request. 
  283
+* +ActionDispatch::Callbacks.after+ takes a block of code to run after the request.
284 284
 
285 285
 h4. Configuring Action View
286 286
 
@@ -396,7 +396,7 @@ Rails has 5 initialization events which can be hooked into (listed in order that
396 396
 
397 397
 * +before_initialize+: This is run directly before the initialization process of the application occurs with the +:bootstrap_hook+ initializer near the beginning of the Rails initialization process.
398 398
 
399  
-* +to_prepare+: Run after the initializers are ran for all Railties (including the application itself), but before eager loading and the middleware stack is built. 
  399
+* +to_prepare+: Run after the initializers are ran for all Railties (including the application itself), but before eager loading and the middleware stack is built.
400 400
 
401 401
 * +before_eager_load+: This is run directly before eager loading occurs, which is the default behaviour for the _production_ environment and not for the +development+ enviroment.
402 402
 
@@ -415,7 +415,7 @@ initializer "active_support.initialize_whiny_nils" do |app|
415 415
 end
416 416
 </ruby>
417 417
 
418  
-The +initializer+ method takes three arguments with the first being the name for the initializer and the second being an options hash (not shown here) and the third being a block. The +:before+ key in the options hash can be specified to specify which initializer this new initializer must run before, and the +:after+ key will specify which initializer to run this initializer _after_. 
  418
+The +initializer+ method takes three arguments with the first being the name for the initializer and the second being an options hash (not shown here) and the third being a block. The +:before+ key in the options hash can be specified to specify which initializer this new initializer must run before, and the +:after+ key will specify which initializer to run this initializer _after_.
419 419
 
420 420
 Initializers defined using the +initializer+ method will be ran in the order they are defined in, with the exception of ones that use the +:before+ or +:after+ methods.
421 421
 
2  railties/guides/source/form_helpers.textile
Source Rendered
@@ -644,7 +644,7 @@ Fundamentally HTML forms don't know about any sort of structured data, all they
644 644
 TIP: You may find you can try out examples in this section faster by using the console to directly invoke Rails' parameter parser. For example,
645 645
 
646 646
 <ruby>
647  
-ActionController::UrlEncodedPairParser.parse_query_parameters "name=fred&phone=0123456789" 
  647
+ActionController::UrlEncodedPairParser.parse_query_parameters "name=fred&phone=0123456789"
648 648
 # => {"name"=>"fred", "phone"=>"0123456789"}
649 649
 </ruby>
650 650
 
4  railties/guides/source/generators.textile
Source Rendered
@@ -403,7 +403,7 @@ Whilst the final section of this guide doesn't cover how to generate the most aw
403 403
 
404 404
 h3. Generator methods
405 405
 
406  
-The following are methods available for both generators and templates for Rails. 
  406
+The following are methods available for both generators and templates for Rails.
407 407
 
408 408
 NOTE: Methods provided by Thor are not covered this guide and can be found in "Thor's documentation":http://rdoc.info/github/wycats/thor/master/Thor/Actions.html
409 409
 
@@ -546,7 +546,7 @@ This method also takes a block:
546 546
     %Q{
547 547
      task :rock => :environment do
548 548
        puts "Rockin'"
549  
-     end 
  549
+     end
550 550
     }
551 551
   end
552 552
 </ruby>
2  railties/guides/source/index.html.erb
@@ -161,7 +161,7 @@ Ruby on Rails Guides
161 161
   <%= guide('API Documentation Guidelines', 'api_documentation_guidelines.html') do %>
162 162
     <p>This guide documents the Ruby on Rails API documentation guidelines.</p>
163 163
   <% end %>
164  
-  
  164
+
165 165
   <%= guide('Ruby on Rails Guides Guidelines', 'ruby_on_rails_guides_guidelines.html') do %>
166 166
     <p>This guide documents the Ruby on Rails guides guidelines.</p>
167 167
   <% end %>
12  railties/guides/source/initialization.textile
Source Rendered
@@ -31,7 +31,7 @@ The actual +rails+ command is kept in _bin/rails_ at the and goes like this:
31 31
   end
32 32
 </ruby>
33 33
 
34  
-This file will attempt to load +rails/cli+ and if it cannot find it then add the +railties/lib+ path to the load path (+$:+) and will then try to require it again. 
  34
+This file will attempt to load +rails/cli+ and if it cannot find it then add the +railties/lib+ path to the load path (+$:+) and will then try to require it again.
35 35
 
36 36
 h4. +railites/lib/rails/cli.rb+
37 37
 
@@ -120,7 +120,7 @@ This climbs the directory tree until it reaches a path which contains a +script/
120 120
 
121 121
 This is effectively the same as doing +ruby script/rails [arguments]+. Where +[arguments]+ at this point in time is simply "server".
122 122
 
123  
-h4. +script/rails+ 
  123
+h4. +script/rails+
124 124
 
125 125
 This file looks like this:
126 126
 
@@ -236,7 +236,7 @@ Now back to +action_pack/lib/action_dispatch.rb+. The next +require+ in this fil
236 236
 
237 237
 After this line, there's a require to +active_model+ which simply defines autoloads for the +ActiveModel+ part of Rails and sets up the +ActiveModel+ module which is used later on.
238 238
 
239  
-The last of the requires is to +rack+, which like the +active_model+ and +active_support+ requires before it, sets up the +Rack+ module as well as the autoloads for constants within it. 
  239
+The last of the requires is to +rack+, which like the +active_model+ and +active_support+ requires before it, sets up the +Rack+ module as well as the autoloads for constants within it.
240 240
 
241 241
 Finally in +action_dispatch.rb+ the +ActionDispatch+ module and *its* autoloads are declared.
242 242
 
@@ -337,7 +337,7 @@ The class *is* defined in +Rack::Server+, but is overwritten in +Rails::Server+
337 337
   ...
338 338
 </ruby>
339 339
 
340  
-This method will set up keys for the +options+ which Rails will then be able to use to determine how its server should run. After +initialize+ has finished, then the +start+ method will launch the server. 
  340
+This method will set up keys for the +options+ which Rails will then be able to use to determine how its server should run. After +initialize+ has finished, then the +start+ method will launch the server.
341 341
 
342 342
 h4. +Rails::Server#start+
343 343
 
@@ -448,7 +448,7 @@ This file begins with requiring +config/application.rb+.
448 448
 
449 449
 h4. +config/application.rb+
450 450
 
451  
-This file requires +config/boot.rb+, but only if it hasn't been required before, which would be the case in +rails server+ but *wouldn't* be the case with Passenger. 
  451
+This file requires +config/boot.rb+, but only if it hasn't been required before, which would be the case in +rails server+ but *wouldn't* be the case with Passenger.
452 452
 
453 453
 Then the fun begins! The next line is:
454 454
 
@@ -512,7 +512,7 @@ For more information see the "Extensions to Logger":http://guides.rubyonrails.or
512 512
 
513 513
 h4. +railties/lib/rails/application.rb+
514 514
 
515  
-The next file required by +railties/lib/rails.rb+ is +application.rb+. This file defines the +Rails::Application+ constant which the application's class defined in +config/application.rb+ in a standard Rails application depends on. Before the +Rails::Application+ class is defined however, there's some other files that get required first. 
  515
+The next file required by +railties/lib/rails.rb+ is +application.rb+. This file defines the +Rails::Application+ constant which the application's class defined in +config/application.rb+ in a standard Rails application depends on. Before the +Rails::Application+ class is defined however, there's some other files that get required first.
516 516
 
517 517
 The first of these is +active_support/core_ext/hash/reverse_merge+ which can be "read about in the Active Support Core Extensions guide":http://guides.rubyonrails.org/active_support_core_extensions.html#merging under the "Merging" section.
518 518
 
2  railties/guides/source/layout.html.erb
@@ -106,7 +106,7 @@
106 106
     <div class="wrapper">
107 107
       <div id="mainCol">
108 108
         <%= yield.html_safe %>
109  
-        
  109
+
110 110
         <h3>Feedback</h3>
111 111
         <p>
112 112
           You're encouraged to help in keeping the quality of this guide.
2  railties/guides/source/ruby_on_rails_guides_guidelines.textile
Source Rendered
@@ -48,7 +48,7 @@ To generate all the guides just cd into the +railties+ directory and execute
48 48
 rake generate_guides
49 49
 </plain>
50 50
 
51  
-You'll need the gems erubis, i18n, and RedCloth. 
  51
+You'll need the gems erubis, i18n, and RedCloth.
52 52
 
53 53
 To process +my_guide.textile+ and nothing else use the +ONLY+ environment variable:
54 54
 

0 notes on commit 6b65cd5

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