Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Some release notes love :heart:

  • Loading branch information...
commit 89cc4f15014cd7d544f912331bed836c5e5c3f0a 1 parent 2d9dbf4
@rafaelfranca rafaelfranca authored
Showing with 31 additions and 0 deletions.
  1. +31 −0 guides/source/4_0_release_notes.textile
View
31 guides/source/4_0_release_notes.textile
@@ -196,6 +196,37 @@ h5(#actioncontroller_deprecations). Deprecations
h4. Action Dispatch
+* Add Routing Concerns to declare common routes that can be reused inside others resources and routes.
+
+Code before:
+
+<ruby>
+resources :messages do
+ resources :comments
+end
+
+resources :posts do
+ resources :comments
+ resources :images, only: :index
+end
+</ruby>
+
+Code after:
+
+<ruby>
+concern :commentable do
+ resources :comments
+end
+
+concern :image_attachable do
+ resources :images, only: :index
+end
+
+resources :messages, concerns: :commentable
+
+resources :posts, concerns: [:commentable, :image_attachable]
+</ruby>
+
* Show routes in exception page while debugging a <tt>RoutingError</tt> in development.
* Include <tt>mounted_helpers</tt> (helpers for accessing mounted engines) in <tt>ActionDispatch::IntegrationTest</tt> by default.
Please sign in to comment.
Something went wrong with that request. Please try again.