aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--railties/lib/webrick_server.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/webrick_server.rb b/railties/lib/webrick_server.rb
index 698ac3cbbf..3262fc505b 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