public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Fixed docs

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4079 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Mon Mar 27 19:19:27 -0800 2006
commit  dfd953ea962675fdfd397a1e75c04b0536ff3c65
tree    97353b0ff6347f349cf9546c2fda450c5140ae83
parent  fed7d334f2904afc0955a6496859a8779f3d965e
...
44
45
46
47
 
48
49
50
51
52
53
54
55
56
...
44
45
46
 
47
48
49
50
51
52
 
53
54
55
0
@@ -44,13 +44,12 @@ end
0
 Rake::RDocTask.new { |rdoc|
0
   rdoc.rdoc_dir = 'doc'
0
   rdoc.title = "Action Pack -- On rails from request to response"
0
- rdoc.options << '--line-numbers' << '--inline-source' << '--main README'
0
+ rdoc.options << '--line-numbers' << '--inline-source'
0
   rdoc.template = "#{ENV['template']}.rb" if ENV['template']
0
   rdoc.rdoc_files.include('README', 'RUNNING_UNIT_TESTS', 'CHANGELOG')
0
   rdoc.rdoc_files.include('lib/**/*.rb')
0
 }
0
 
0
-
0
 # Create compressed packages
0
 dist_dirs = [ "lib", "test", "examples" ]
0
 
...
681
682
683
684
 
685
686
687
...
690
691
692
693
 
694
695
696
697
698
699
700
 
701
702
703
704
705
 
706
707
708
709
710
711
 
712
713
714
715
716
 
717
718
719
720
721
 
722
723
724
725
 
726
727
728
729
730
 
731
732
733
734
735
 
736
737
738
739
 
740
741
742
743
744
745
 
746
747
748
749
750
751
752
753
754
755
 
756
757
758
...
761
762
763
764
 
765
766
767
768
769
 
770
771
772
...
681
682
683
 
684
685
686
687
...
690
691
692
 
693
694
695
696
697
698
699
 
700
701
702
703
704
 
705
706
707
708
709
710
 
711
712
713
714
715
 
716
717
718
719
720
 
721
722
723
724
 
725
726
727
728
729
 
730
731
732
733
734
 
735
736
737
738
 
739
740
741
742
743
744
 
745
746
747
748
749
 
750
751
752
753
 
754
755
756
757
...
760
761
762
 
763
764
765
766
767
 
768
769
770
771
0
@@ -681,7 +681,7 @@ module ActionController #:nodoc:
0
         result
0
       end
0
 
0
- def render_action(action_name, status = nil, with_layout = true)
0
+ def render_action(action_name, status = nil, with_layout = true) #:nodoc:
0
         template = default_template_name(action_name.to_s)
0
         if with_layout && !template_exempt_from_layout?(template)
0
           render_with_layout(template, status)
0
@@ -690,69 +690,68 @@ module ActionController #:nodoc:
0
         end
0
       end
0
 
0
- def render_file(template_path, status = nil, use_full_path = false, locals = {})
0
+ def render_file(template_path, status = nil, use_full_path = false, locals = {}) #:nodoc:
0
         add_variables_to_assigns
0
         assert_existence_of_template_file(template_path) if use_full_path
0
         logger.info("Rendering #{template_path}" + (status ? " (#{status})" : '')) if logger
0
         render_text(@template.render_file(template_path, use_full_path, locals), status)
0
       end
0
 
0
- def render_template(template, status = nil, type = :rhtml, local_assigns = {})
0
+ def render_template(template, status = nil, type = :rhtml, local_assigns = {}) #:nodoc:
0
         add_variables_to_assigns
0
         render_text(@template.render_template(type, template, nil, local_assigns), status)
0
       end
0
 
0
- def render_text(text = nil, status = nil)
0
+ def render_text(text = nil, status = nil) #:nodoc:
0
         @performed_render = true
0
         @response.headers['Status'] = (status || DEFAULT_RENDER_STATUS_CODE).to_s
0
         @response.body = text
0
       end
0
 
0
- def render_javascript(javascript, status = nil)
0
+ def render_javascript(javascript, status = nil) #:nodoc:
0
         @response.headers['Content-Type'] = 'text/javascript; charset=UTF-8'
0
         render_text(javascript, status)
0
       end
0
 
0
- def render_xml(xml, status = nil)
0
+ def render_xml(xml, status = nil) #:nodoc:
0
         @response.headers['Content-Type'] = 'application/xml'
0
         render_text(xml, status)
0
       end
0
 
0
- def render_nothing(status = nil)
0
+ def render_nothing(status = nil) #:nodoc:
0
         render_text(' ', status)
0
       end
0
 
0
- def render_partial(partial_path = default_template_name, object = nil, local_assigns = nil, status = nil)
0
+ def render_partial(partial_path = default_template_name, object = nil, local_assigns = nil, status = nil) #:nodoc:
0
         add_variables_to_assigns
0
         render_text(@template.render_partial(partial_path, object, local_assigns), status)
0
       end
0
 
0
- def render_partial_collection(partial_name, collection, partial_spacer_template = nil, local_assigns = nil, status = nil)
0
+ def render_partial_collection(partial_name, collection, partial_spacer_template = nil, local_assigns = nil, status = nil) #:nodoc:
0
         add_variables_to_assigns
0
         render_text(@template.render_partial_collection(partial_name, collection, partial_spacer_template, local_assigns), status)
0
       end
0
 
0
- def render_with_layout(template_name = default_template_name, status = nil, layout = nil)
0
+ def render_with_layout(template_name = default_template_name, status = nil, layout = nil) #:nodoc:
0
         render_with_a_layout(template_name, status, layout)
0
       end
0
 
0
- def render_without_layout(template_name = default_template_name, status = nil)
0
+ def render_without_layout(template_name = default_template_name, status = nil) #:nodoc:
0
         render_with_no_layout(template_name, status)
0
       end
0
 
0
 
0
       # Clears the rendered results, allowing for another render to be performed.
0
- def erase_render_results
0
+ def erase_render_results #:nodoc:
0
         @response.body = nil
0
         @performed_render = false
0
       end
0
       
0
-
0
       # Clears the redirected results from the headers, resets the status to 200 and returns
0
       # the URL that was used to redirect or nil if there was no redirected URL
0
       # Note that +redirect_to+ will change the body of the response to indicate a redirection.
0
       # The response body is not reset here, see +erase_render_results+
0
- def erase_redirect_results
0
+ def erase_redirect_results #:nodoc:
0
         @performed_redirect = false
0
         response.redirected_to = nil
0
         response.redirected_to_method_params = nil
0
@@ -761,12 +760,12 @@ module ActionController #:nodoc:
0
       end
0
 
0
       # Erase both render and redirect results
0
- def erase_results
0
+ def erase_results #:nodoc:
0
         erase_render_results
0
         erase_redirect_results
0
       end
0
 
0
- def rewrite_options(options)
0
+ def rewrite_options(options) #:nodoc:
0
         if defaults = default_url_options(options)
0
           defaults.merge(options)
0
         else
...
115
116
117
118
 
119
120
121
...
115
116
117
 
118
119
120
121
0
@@ -115,7 +115,7 @@ module ActionController #:nodoc:
0
           end
0
         end
0
 
0
- def flash_with_components(refresh = false)
0
+ def flash_with_components(refresh = false) #:nodoc:
0
           if @flash.nil? || refresh
0
             @flash =
0
               if @parent_controller
...
28
29
30
31
 
32
33
34
...
28
29
30
 
31
32
33
34
0
@@ -28,7 +28,7 @@ module ActionController #:nodoc:
0
     #
0
     # Also note, that if the models follow the pattern of just 1 class per file in the form of MyClass => my_class.rb, then these
0
     # classes don't have to be required as Active Support will auto-require them.
0
- module ClassMethods
0
+ module ClassMethods #:nodoc:
0
       # Specifies a variable number of models that this controller depends on. Models are normally Active Record classes or a similar
0
       # backend for modelling entity classes.
0
       def model(*models)
...
2
3
4
5
 
6
7
8
9
10
11
12
 
13
14
15
...
2
3
4
 
5
6
7
8
9
10
11
 
12
13
14
15
0
@@ -2,14 +2,14 @@ module ActionController
0
   class Base
0
     protected
0
       # Deprecated in favor of calling redirect_to directly with the path.
0
- def redirect_to_path(path)
0
+ def redirect_to_path(path) #:nodoc:
0
         redirect_to(path)
0
       end
0
 
0
       # Deprecated in favor of calling redirect_to directly with the url. If the resource has moved permanently, it's possible to pass
0
       # true as the second parameter and the browser will get "301 Moved Permanently" instead of "302 Found". This can also be done through
0
       # just setting the headers["Status"] to "301 Moved Permanently" before using the redirect_to.
0
- def redirect_to_url(url, permanently = false)
0
+ def redirect_to_url(url, permanently = false) #:nodoc:
0
         headers["Status"] = "301 Moved Permanently" if permanently
0
         redirect_to(url)
0
       end
...
136
137
138
139
 
140
141
142
...
136
137
138
 
139
140
141
142
0
@@ -136,7 +136,7 @@ module ActionController #:nodoc:
0
         end
0
     end
0
 
0
- module InstanceMethods
0
+ module InstanceMethods #:nodoc:
0
       def assign_shortcuts_with_flash(request, response) #:nodoc:
0
         assign_shortcuts_without_flash(request, response)
0
         flash(:refresh)
...
3
4
5
6
7
 
8
9
10
...
169
170
171
172
 
173
174
175
...
319
320
321
322
 
323
324
325
...
3
4
5
 
 
6
7
8
9
...
168
169
170
 
171
172
173
174
...
318
319
320
 
321
322
323
324
0
@@ -3,8 +3,7 @@ require 'stringio'
0
 require 'uri'
0
 
0
 module ActionController
0
- module Integration
0
-
0
+ module Integration #:nodoc:
0
     # An integration Session instance represents a set of requests and responses
0
     # performed sequentially by some virtual user. Becase you can instantiate
0
     # multiple sessions and run them side-by-side, you can also mimic (to some
0
@@ -169,7 +168,7 @@ module ActionController
0
       end
0
 
0
       private
0
-
0
+
0
         class MockCGI < CGI #:nodoc:
0
           attr_accessor :stdinput, :stdoutput, :env_table
0
 
0
@@ -319,7 +318,7 @@ module ActionController
0
         end
0
       end
0
 
0
- module ClassMethods
0
+ module ClassMethods #:nodoc:
0
         mattr_accessor :last_instantiation
0
 
0
         def clear_last_instantiation!
...
1
2
3
 
4
5
6
...
1
 
 
2
3
4
5
0
@@ -1,6 +1,5 @@
0
 module Mime
0
- class Type
0
-
0
+ class Type #:nodoc:
0
     # A simple helper class used in parsing the accept header
0
     class AcceptItem #:nodoc:
0
       attr_accessor :order, :name, :q
...
1
2
3
4
 
5
6
7
...
81
82
83
84
 
85
86
87
...
1
2
3
 
4
5
6
7
...
81
82
83
 
84
85
86
87
0
@@ -1,7 +1,7 @@
0
 require 'rexml/document'
0
 
0
 # SimpleXML like xml parser. Written by leon breet from the ruby on rails Mailing list
0
-class XmlNode
0
+class XmlNode #:nodoc:
0
   attr :node
0
 
0
   def initialize(node, options = {})
0
@@ -81,7 +81,7 @@ class XmlNode
0
   end
0
 end
0
 
0
-class XmlNodeList < Array
0
+class XmlNodeList < Array #:nodoc:
0
   def [](i)
0
     i.is_a?(String) ? super(0)[i] : super(i)
0
   end
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-module ActionPack
0
+module ActionPack #:nodoc:
0
   module VERSION #:nodoc:
0
     MAJOR = 1
0
     MINOR = 11
...
221
222
223
224
 
225
226
227
...
254
255
256
257
 
258
259
260
...
277
278
279
280
 
281
282
283
...
293
294
295
296
 
297
298
299
...
221
222
223
 
224
225
226
227
...
254
255
256
 
257
258
259
260
...
277
278
279
 
280
281
282
283
...
293
294
295
 
296
297
298
299
0
@@ -221,7 +221,7 @@ module ActionView #:nodoc:
0
     # Renders the template present at <tt>template_path</tt>. If <tt>use_full_path</tt> is set to true,
0
     # it's relative to the template_root, otherwise it's absolute. The hash in <tt>local_assigns</tt>
0
     # is made available as local variables.
0
- def render_file(template_path, use_full_path = true, local_assigns = {})
0
+ def render_file(template_path, use_full_path = true, local_assigns = {}) #:nodoc:
0
       @first_render ||= template_path
0
 
0
       if use_full_path
0
@@ -254,7 +254,7 @@ module ActionView #:nodoc:
0
 
0
     # Renders the template present at <tt>template_path</tt> (relative to the template_root).
0
     # The hash in <tt>local_assigns</tt> is made available as local variables.
0
- def render(options = {}, old_local_assigns = {}, &block)
0
+ def render(options = {}, old_local_assigns = {}, &block) #:nodoc:
0
       if options.is_a?(String)
0
         render_file(options, true, old_local_assigns)
0
       elsif options == :update
0
@@ -277,7 +277,7 @@ module ActionView #:nodoc:
0
 
0
     # Renders the +template+ which is given as a string as either rhtml or rxml depending on <tt>template_extension</tt>.
0
     # The hash in <tt>local_assigns</tt> is made available as local variables.
0
- def render_template(template_extension, template, file_path = nil, local_assigns = {})
0
+ def render_template(template_extension, template, file_path = nil, local_assigns = {}) #:nodoc:
0
       if handler = @@template_handlers[template_extension]
0
         template ||= read_template_file(file_path, template_extension) # Make sure that a lazyily-read template is loaded.
0
         delegate_render(handler, template, local_assigns)
0
@@ -293,7 +293,7 @@ module ActionView #:nodoc:
0
     # Either, but not both, of template and file_path may be nil. If file_path is given, the template
0
     # will only be read if it has to be compiled.
0
     #
0
- def compile_and_render_template(extension, template = nil, file_path = nil, local_assigns = {})
0
+ def compile_and_render_template(extension, template = nil, file_path = nil, local_assigns = {}) #:nodoc:
0
       # compile the given template, if necessary
0
       if compile_template?(template, file_path, local_assigns)
0
         template ||= read_template_file(file_path, extension)
...
10
11
12
13
 
14
15
16
...
10
11
12
 
13
14
15
16
0
@@ -10,7 +10,7 @@ module ActionView
0
   #
0
   # To use a compiled template module, create a new instance and include it into the class
0
   # in which you want the template to be rendered.
0
- class CompiledTemplates < Module
0
+ class CompiledTemplates < Module #:nodoc:
0
     attr_reader :method_names
0
 
0
     def initialize

Comments

    No one has commented yet.