…mplate is being rendered Closes #5025 part 2
This fixes undef `to_str' for Rack::Chunked::Body when using caches_action + streaming on an action Closes #5027
`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
ActionController::ActionControllerError is already defined in action_controller/metal/exceptions.
Use the constants AbstractController::ActionNotFound and AbstractController::DoubleRenderError respectively instead.
Signed-off-by: José Valim <email@example.com>
…al in production.
…er::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH*
Currently if you're do this: assert_template :layout => "foo" Regardless of what layout you were using, the test will always pass. This was broken since the introduction of :layout option in [d9375f3]. We have a lot of test cases in actionpack/test/controller/layout_test.rb that use this feature. This will make sure that those test cases are not true negative.
…in a curly regexp and by mentoining the protocol relative scheme in the internal comment
…e "//asset.host.com/resources/1235" see issue #3856
* A Railtie API for registering new exceptions and their respective status code (check Active Record railtie for an example) * Extraction of ShowExceptions middleware logging and debugging features into a middleware called DebugExceptions Conflicts: actionpack/CHANGELOG.md