Skip to content
This repository
Browse code

status is a number in Rails 3

  • Loading branch information...
commit a27f6ec1506e8491bab1d0a062fb62808769ca40 1 parent 2a73d00
Akira Matsuda authored October 12, 2011 vijaydev committed October 14, 2011
4  actionpack/lib/action_controller/metal/data_streaming.rb
@@ -30,7 +30,7 @@ module DataStreaming
30 30
       #   either a string or a symbol for a registered type register with <tt>Mime::Type.register</tt>, for example :json
31 31
       # * <tt>:disposition</tt> - specifies whether the file will be shown inline or downloaded.
32 32
       #   Valid values are 'inline' and 'attachment' (default).
33  
-      # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to '200 OK'.
  33
+      # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to 200.
34 34
       # * <tt>:url_based_filename</tt> - set to +true+ if you want the browser guess the filename from
35 35
       #   the URL, which is necessary for i18n filenames on certain browsers
36 36
       #   (setting <tt>:filename</tt> overrides this option).
@@ -86,7 +86,7 @@ def send_file(path, options = {}) #:doc:
86 86
       #   either a string or a symbol for a registered type register with <tt>Mime::Type.register</tt>, for example :json
87 87
       # * <tt>:disposition</tt> - specifies whether the file will be shown inline or downloaded.
88 88
       #   Valid values are 'inline' and 'attachment' (default).
89  
-      # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to '200 OK'.
  89
+      # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to 200.
90 90
       #
91 91
       # Generic data download:
92 92
       #

0 notes on commit a27f6ec

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