mirror of https://github.com/rails/rails
Fixed a pattern for module loading
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
8eec674148
commit
65a9011ea3
|
@ -1,5 +1,7 @@
|
|||
*CVS*
|
||||
|
||||
* Added the possibility of marking fields as being in error without adding a message (using nil) to it that'll get displayed wth full_messages #208 [mjobin]
|
||||
|
||||
* Fixed Base.errors to be indifferent as to whether strings or symbols are used. Examples:
|
||||
|
||||
Before:
|
||||
|
|
|
@ -130,12 +130,13 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet
|
|||
{ :controller => $1, :action => "index" }
|
||||
when %r{^/#{component}/#{component}$} then
|
||||
{ :controller => $1, :action => $2 }
|
||||
when %r{^/#{component}/#{component}/#{id}$} then
|
||||
{ :controller => $1, :action => $2, :id => $3 }
|
||||
|
||||
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
|
||||
{ :module => $1, :controller => $2, :action => $3, :id => $4 }
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue