…rtion_variables" This reverts commit 2bad605. Conflicts: actionpack/CHANGELOG.md Reason: This added a regression related with shoulda-matchers, since it is expecting the instance variable @layouts See https://github.com/thoughtbot/shoulda-matchers/blob/9e1188eea68c47d9a56ce6280e45027da6187ab1/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb#L74 This will introduce back #7459 but this stable release will be backward compatible. Related with #8068.
To test uploading a file without using fixture_file_upload, a posted ActionDispatch::Http::UploadedFile should not be paramified (just like Rack::Test::UploadedFile). (Rack::Test::UploadedFile and ActionDispatch::Http::UploadedFile don't share the same API, tempfile is not accessible on Rack::Test::UploadedFile as discussed in brynary/rack-test#30)
…ect the file's path, so opening the file to set the response body is wasteful. Set a FileBody wrapper instead that responds to to_path and streams the file if needed.
…e or fallback
…angerous especially with Rack::Cache), it should only be loaded when the flash method is called
(cherry picked from commit 7a80b69) Conflicts: actionpack/test/controller/test_test.rb
…he rack headers (and its causing problems for Strong Parameters attempt of wrapping request.parameters because it will change in testing)
This method has no effect since exception handling was moved to middlewares and ActionController tests do not use any middlewares.
…mplate is being rendered Closes #5025 part 2
`ActionController.force_ssl` redirects http URLs to their https equivalent; however, when a URL contains a query string, the resulting redirect lacked the original query string.
Default responder was only using the given respond block when user requested for HTML format, or JSON/XML format with valid resource. This fix the responder so that it will use the given block regardless of the validity of the resource. Note that in this case you'll have to check for object's validity by yourself in the controller. Fixes #4796
Use the constants AbstractController::ActionNotFound and AbstractController::DoubleRenderError respectively instead.