mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #1727 from ihower/improve_legacy_wild_controller_route
Improve the legacy wild controller route in app templates
This commit is contained in:
@@ -161,7 +161,7 @@ module ActionDispatch
|
||||
# Consider the following route, which you will find commented out at the
|
||||
# bottom of your generated <tt>config/routes.rb</tt>:
|
||||
#
|
||||
# match ':controller(/:action(/:id(.:format)))'
|
||||
# match ':controller(/:action(/:id))(.:format)'
|
||||
#
|
||||
# This route states that it expects requests to consist of a
|
||||
# <tt>:controller</tt> followed optionally by an <tt>:action</tt> that in
|
||||
|
||||
@@ -54,5 +54,5 @@
|
||||
|
||||
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
||||
# Note: This route will make all actions in every controller accessible via GET requests.
|
||||
# match ':controller(/:action(/:id(.:format)))'
|
||||
# match ':controller(/:action(/:id))(.:format)'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user