2013-10-10 12:01:03 +00:00
|
|
|
* Respect `SCRIPT_NAME` when using `redirect` with a relative path
|
|
|
|
|
|
|
|
Example:
|
|
|
|
# application routes.rb
|
|
|
|
mount BlogEngine => '/blog'
|
|
|
|
|
|
|
|
# engine routes.rb
|
|
|
|
get '/admin' => redirect('admin/dashboard')
|
|
|
|
|
|
|
|
This now redirects to the path `/blog/admin/dashboard`, whereas before it would've
|
|
|
|
generated an invalid url because there would be no slash between the host name and
|
|
|
|
the path. It also allows redirects to work where the application is deployed to a
|
|
|
|
subdirectory of a website.
|
|
|
|
|
|
|
|
Fixes #7977
|
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2013-08-30 09:53:03 +00:00
|
|
|
* Fixing repond_with working directly on the options hash
|
|
|
|
This fixes an issue where the respond_with worked directly with the given
|
|
|
|
options hash, so that if a user relied on it after calling respond_with,
|
|
|
|
the hash wouldn't be the same.
|
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #12029.
|
2013-08-30 09:53:03 +00:00
|
|
|
|
|
|
|
*bluehotdog*
|
|
|
|
|
2013-09-30 11:51:37 +00:00
|
|
|
* Fix `ActionDispatch::RemoteIp::GetIp#calculate_ip` to only check for spoofing
|
|
|
|
attacks if both `HTTP_CLIENT_IP` and `HTTP_X_FORWARDED_FOR` are set.
|
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #10844.
|
2013-09-30 11:51:37 +00:00
|
|
|
|
|
|
|
*Tamir Duberstein*
|
|
|
|
|
2013-09-22 14:57:21 +00:00
|
|
|
* Strong parameters should permit nested number as key.
|
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #12293.
|
2013-09-22 14:57:21 +00:00
|
|
|
|
|
|
|
*kennyj*
|
|
|
|
|
2013-09-19 13:17:15 +00:00
|
|
|
* Fix regex used to detect URI schemes in `redirect_to` to be consistent with
|
|
|
|
RFC 3986.
|
|
|
|
|
|
|
|
*Derek Prior*
|
|
|
|
|
2013-04-26 18:30:29 +00:00
|
|
|
* Fix incorrect `assert_redirected_to` failure message for protocol-relative
|
|
|
|
URLs.
|
|
|
|
|
|
|
|
*Derek Prior*
|
|
|
|
|
2013-09-18 17:40:03 +00:00
|
|
|
* Fix an issue where router can't recognize downcased url encoding path.
|
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #12269.
|
2013-09-18 17:40:03 +00:00
|
|
|
|
|
|
|
*kennyj*
|
|
|
|
|
2013-09-13 13:03:38 +00:00
|
|
|
* Fix custom flash type definition. Misusage of the `_flash_types` class variable
|
|
|
|
caused an error when reloading controllers with custom flash types.
|
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #12057.
|
2013-09-13 13:03:38 +00:00
|
|
|
|
|
|
|
*Ricardo de Cillo*
|
|
|
|
|
2013-09-12 22:22:06 +00:00
|
|
|
* Do not break params filtering on `nil` values.
|
|
|
|
|
|
|
|
Fixes #12149.
|
|
|
|
|
|
|
|
*Vasiliy Ermolovich*
|
|
|
|
|
2013-08-27 02:46:28 +00:00
|
|
|
* Separate Action View completely from Action Pack.
|
2013-08-07 14:34:41 +00:00
|
|
|
|
|
|
|
*Łukasz Strzałkowski*
|
|
|
|
|
2013-08-21 12:42:04 +00:00
|
|
|
* Development mode exceptions are rendered in text format in case of XHR request.
|
|
|
|
|
|
|
|
*Kir Shatrov*
|
|
|
|
|
2013-08-07 19:43:22 +00:00
|
|
|
* Fix an issue where :if and :unless controller action procs were being run
|
|
|
|
before checking for the correct action in the :only and :unless options.
|
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #11799.
|
2013-08-07 19:43:22 +00:00
|
|
|
|
|
|
|
*Nicholas Jakobsen*
|
|
|
|
|
2013-08-04 12:53:22 +00:00
|
|
|
* Fix an issue where `assert_dom_equal` and `assert_dom_not_equal` were
|
|
|
|
ignoring the passed failure message argument.
|
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #11751.
|
2013-08-04 12:53:22 +00:00
|
|
|
|
|
|
|
*Ryan McGeary*
|
|
|
|
|
2013-07-25 06:46:54 +00:00
|
|
|
* Allow REMOTE_ADDR, HTTP_HOST and HTTP_USER_AGENT to be overridden from
|
|
|
|
the environment passed into `ActionDispatch::TestRequest.new`.
|
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #11590.
|
2013-07-25 06:46:54 +00:00
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2013-07-21 16:10:34 +00:00
|
|
|
* Fix an issue where Journey was failing to clear the named routes hash when the
|
|
|
|
routes were reloaded and since it doesn't overwrite existing routes then if a
|
|
|
|
route changed but wasn't renamed it kept the old definition. This was being
|
|
|
|
masked by the optimised url helpers so it only became apparent when passing an
|
|
|
|
options hash to the url helper.
|
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2013-07-16 12:27:22 +00:00
|
|
|
* Skip routes pointing to a redirect or mounted application when generating urls
|
|
|
|
using an options hash as they aren't relevant and generate incorrect urls.
|
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #8018.
|
2013-07-16 12:27:22 +00:00
|
|
|
|
|
|
|
*Andrew White*
|
|
|
|
|
2013-07-12 07:37:15 +00:00
|
|
|
* Move `MissingHelperError` out of the `ClassMethods` module.
|
|
|
|
|
|
|
|
*Yves Senn*
|
|
|
|
|
2013-05-16 13:37:19 +00:00
|
|
|
* Fix an issue where rails raise exception about missing helper where it
|
|
|
|
should throw `LoadError`. When helper file exists and only loaded file from
|
|
|
|
this helper does not exist rails should throw LoadError instead of
|
|
|
|
`MissingHelperError`.
|
|
|
|
|
|
|
|
*Piotr Niełacny*
|
|
|
|
|
2013-07-07 22:32:22 +00:00
|
|
|
* Fix `ActionDispatch::ParamsParser#parse_formatted_parameters` to rewind body input stream on
|
|
|
|
parsing json params.
|
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #11345.
|
2013-07-07 22:32:22 +00:00
|
|
|
|
|
|
|
*Yuri Bol*, *Paul Nikitochkin*
|
|
|
|
|
2013-06-26 20:59:16 +00:00
|
|
|
* Ignore spaces around delimiter in Set-Cookie header.
|
|
|
|
|
|
|
|
*Yamagishi Kazutoshi*
|
|
|
|
|
2013-07-03 01:59:59 +00:00
|
|
|
* Remove deprecated Rails application fallback for integration testing, set
|
|
|
|
`ActionDispatch.test_app` instead.
|
|
|
|
|
|
|
|
*Carlos Antonio da Silva*
|
|
|
|
|
2013-07-02 03:09:11 +00:00
|
|
|
* Remove deprecated `page_cache_extension` config.
|
|
|
|
|
|
|
|
*Francesco Rodriguez*
|
|
|
|
|
2013-07-02 01:19:32 +00:00
|
|
|
* Remove deprecated constants from Action Controller:
|
|
|
|
|
|
|
|
ActionController::AbstractRequest => ActionDispatch::Request
|
|
|
|
ActionController::Request => ActionDispatch::Request
|
|
|
|
ActionController::AbstractResponse => ActionDispatch::Response
|
|
|
|
ActionController::Response => ActionDispatch::Response
|
|
|
|
ActionController::Routing => ActionDispatch::Routing
|
|
|
|
ActionController::Integration => ActionDispatch::Integration
|
|
|
|
ActionController::IntegrationTest => ActionDispatch::IntegrationTest
|
|
|
|
|
|
|
|
*Carlos Antonio da Silva*
|
|
|
|
|
2013-06-25 22:34:20 +00:00
|
|
|
* Fix `Mime::Type.parse` when bad accepts header is looked up. Previously it
|
|
|
|
was setting `request.formats` with an array containing a `nil` value, which
|
|
|
|
raised an error when setting the controller formats.
|
2013-06-18 21:22:30 +00:00
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #10965.
|
2013-06-16 14:39:03 +00:00
|
|
|
|
2013-06-25 22:34:20 +00:00
|
|
|
*Becker*
|
2013-06-16 14:39:03 +00:00
|
|
|
|
2013-06-25 05:04:26 +00:00
|
|
|
* Merge `:action` from routing scope and assign endpoint if both `:controller`
|
|
|
|
and `:action` are present. The endpoint assignment only occurs if there is
|
|
|
|
no `:to` present in the options hash so should only affect routes using the
|
2013-06-25 10:25:03 +00:00
|
|
|
shorthand syntax (i.e. endpoint is inferred from the path).
|
2013-06-25 05:04:26 +00:00
|
|
|
|
2013-10-09 09:49:12 +00:00
|
|
|
Fixes #9856.
|
2013-06-25 05:04:26 +00:00
|
|
|
|
|
|
|
*Yves Senn*, *Andrew White*
|
|
|
|
|
2013-06-20 17:06:52 +00:00
|
|
|
* ActionView extracted from ActionPack
|
2013-06-17 00:37:23 +00:00
|
|
|
|
2013-06-20 17:06:52 +00:00
|
|
|
*Piotr Sarnacki*, *Łukasz Strzałkowski*
|
2013-04-18 16:11:12 +00:00
|
|
|
|
2013-06-21 06:51:28 +00:00
|
|
|
* Fix removing trailing slash for mounted apps #3215
|
|
|
|
|
|
|
|
*Piotr Sarnacki*
|
|
|
|
|
2013-04-29 16:06:45 +00:00
|
|
|
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/actionpack/CHANGELOG.md) for previous changes.
|