1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Some release notes love ❤️

This commit is contained in:
Rafael Mendonça França 2012-08-14 04:05:37 -03:00
parent 2d9dbf416b
commit 89cc4f1501

View file

@ -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.