Permalink
Browse files

status is a number in Rails 3

  • Loading branch information...
amatsuda committed Oct 12, 2011
1 parent c4e2954 commit 4a025f0080d05f6c27518a84cde0b93fa3821345
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/metal/data_streaming.rb
@@ -34,7 +34,7 @@ module DataStreaming
# If no content type is registered for the extension, default type 'application/octet-stream' will be used.
# * <tt>:disposition</tt> - specifies whether the file will be shown inline or downloaded.
# Valid values are 'inline' and 'attachment' (default).
- # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to '200 OK'.
+ # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to 200.
# * <tt>:url_based_filename</tt> - set to +true+ if you want the browser guess the filename from
# the URL, which is necessary for i18n filenames on certain browsers
# (setting <tt>:filename</tt> overrides this option).
@@ -92,7 +92,7 @@ def send_file(path, options = {}) #:doc:
# If no content type is registered for the extension, default type 'application/octet-stream' will be used.
# * <tt>:disposition</tt> - specifies whether the file will be shown inline or downloaded.
# Valid values are 'inline' and 'attachment' (default).
- # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to '200 OK'.
+ # * <tt>:status</tt> - specifies the status code to send with the response. Defaults to 200.
#
# Generic data download:
#

0 comments on commit 4a025f0

Please sign in to comment.