From 70ff81075debca07ae7d32ae45bfbfe4bddc1cf7 Mon Sep 17 00:00:00 2001 From: Trevor Turk Date: Mon, 18 Mar 2013 06:22:08 -0500 Subject: The default route has been removed --- actionpack/lib/action_dispatch/routing.rb | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb index b896ec9efb..8881417583 100644 --- a/actionpack/lib/action_dispatch/routing.rb +++ b/actionpack/lib/action_dispatch/routing.rb @@ -157,30 +157,6 @@ module ActionDispatch # Encoding regular expression modifiers are silently ignored. The # match will always use the default encoding or ASCII. # - # == Default route - # - # Consider the following route, which you will find commented out at the - # bottom of your generated config/routes.rb: - # - # match ':controller(/:action(/:id))(.:format)' - # - # This route states that it expects requests to consist of a - # :controller followed optionally by an :action that in - # turn is followed optionally by an :id, which in turn is followed - # optionally by a :format. - # - # Suppose you get an incoming request for /blog/edit/22, you'll end - # up with: - # - # params = { controller: 'blog', - # action: 'edit', - # id: '22' - # } - # - # By not relying on default routes, you improve the security of your - # application since not all controller actions, which includes actions you - # might add at a later time, are exposed by default. - # # == HTTP Methods # # Using the :via option when specifying a route allows you to -- cgit v1.2.3