aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r--actionpack/CHANGELOG.md55
1 files changed, 54 insertions, 1 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md
index a7a4aabc98..0167dcbf96 100644
--- a/actionpack/CHANGELOG.md
+++ b/actionpack/CHANGELOG.md
@@ -1,3 +1,56 @@
+* Prefer `remove_method` over `undef_method` when reloading routes
+
+ When `undef_method` is used it prevents access to other implementations of that
+ url helper in the ancestor chain so use `remove_method` instead to restore access.
+
+ *Andrew White*
+
+* Add the `resolve` method to the routing DSL
+
+ This new method allows customization of the polymorphic mapping of models:
+
+ ``` ruby
+ resource :basket
+ resolve(class: "Basket") { [:basket] }
+ ```
+
+ ``` erb
+ <%= form_for @basket do |form| %>
+ <!-- basket form -->
+ <% end %>
+ ```
+
+ This generates the correct singular URL for the form instead of the default
+ resources member url, e.g. `/basket` vs. `/basket/:id`.
+
+ Fixes #1769.
+
+ *Andrew White*
+
+* Add the `direct` method to the routing DSL
+
+ This new method allows creation of custom url helpers, e.g:
+
+ ``` ruby
+ direct(:apple) { "http://www.apple.com" }
+
+ >> apple_url
+ => "http://www.apple.com"
+ ```
+
+ This has the advantage of being available everywhere url helpers are available
+ unlike custom url helpers defined in helper modules, etc.
+
+ *Andrew White*
+
+* Add `ActionDispatch::SystemTestCase` to Action Pack
+
+ Adds Capybara integration directly into Rails through Action Pack!
+
+ See PR [#26703](https://github.com/rails/rails/pull/26703)
+
+ *Eileen M. Uchitelle*
+
* Remove deprecated `.to_prepare`, `.to_cleanup`, `.prepare!` and `.cleanup!` from `ActionDispatch::Reloader`.
*Rafael Mendonça França*
@@ -35,7 +88,7 @@
*Tawan Sierek*
-* Fixes incorrect output from rails routes when using singular resources.
+* Fixes incorrect output from `rails routes` when using singular resources.
Fixes #26606.