diff options
author | Yuya Tanaka <yuya.presto@gmail.com> | 2019-07-19 14:39:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-19 14:39:48 +0900 |
commit | 438af5507cb8be5af3db5e2c1cc012767011ecff (patch) | |
tree | 551520c84dc3e1644f0548508d8c54979be8eca8 /actionpack/lib/action_controller | |
parent | 027085a5972a798cfea60f829a9edabbd67a2818 (diff) | |
download | rails-438af5507cb8be5af3db5e2c1cc012767011ecff.tar.gz rails-438af5507cb8be5af3db5e2c1cc012767011ecff.tar.bz2 rails-438af5507cb8be5af3db5e2c1cc012767011ecff.zip |
[ActionController] Fix send_file example for 404
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/data_streaming.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/data_streaming.rb b/actionpack/lib/action_controller/metal/data_streaming.rb index 9ef4f50df1..879745a895 100644 --- a/actionpack/lib/action_controller/metal/data_streaming.rb +++ b/actionpack/lib/action_controller/metal/data_streaming.rb @@ -53,7 +53,7 @@ module ActionController #:nodoc: # # Show a 404 page in the browser: # - # send_file '/path/to/404.html', type: 'text/html; charset=utf-8', status: 404 + # send_file '/path/to/404.html', type: 'text/html; charset=utf-8', disposition: 'inline', status: 404 # # Read about the other Content-* HTTP headers if you'd like to # provide the user with more information (such as Content-Description) in |