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:
José Valim
2011-06-16 02:11:35 -07:00
2 changed files with 2 additions and 2 deletions

View File

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

View File

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