diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-12 17:23:20 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2004-12-12 17:23:20 +0000 |
commit | c33126e07c3765319d792e3b3e17bd92d7d0d9ff (patch) | |
tree | 4a68586bef1ceed9d946a886b3e62d5b939acaa4 /railties/lib | |
parent | eb952e1e947a76efed95e024acf3002be2dc711e (diff) | |
download | rails-c33126e07c3765319d792e3b3e17bd92d7d0d9ff.tar.gz rails-c33126e07c3765319d792e3b3e17bd92d7d0d9ff.tar.bz2 rails-c33126e07c3765319d792e3b3e17bd92d7d0d9ff.zip |
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
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/webrick_server.rb | 2 |
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 |