From c33126e07c3765319d792e3b3e17bd92d7d0d9ff Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 12 Dec 2004 17:23:20 +0000 Subject: [PATCH] Added pattern for specific actions in a modularized controller git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/webrick_server.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/railties/lib/webrick_server.rb b/railties/lib/webrick_server.rb index 698ac3cbbfa..3262fc505b7 100644 --- a/railties/lib/webrick_server.rb +++ b/railties/lib/webrick_server.rb @@ -132,6 +132,8 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet { :controller => $1, :action => $2 } when %r{^/#{component}/#{component}/$} then { :module => $1, :controller => $2, :action => "index" } + when %r{^/#{component}/#{component}/#{component}$} then + { :module => $1, :controller => $2, :action => $3 } when %r{^/#{component}/#{component}/#{id}$} then { :controller => $1, :action => $2, :id => $3 } when %r{^/#{component}/#{component}/#{component}/#{id}$} then