Rails3: route: split boards topics edit and destroy

Rails2 legacy route on Rails 3.0 does not support this syntax.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8310 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-22 00:45:26 +00:00
parent ab1137159f
commit e2b36d1c8a
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ ActionController::Routing::Routes.draw do |map|
messages_actions.connect 'boards/:board_id/topics/new', :action => 'new' messages_actions.connect 'boards/:board_id/topics/new', :action => 'new'
messages_actions.connect 'boards/:board_id/topics/preview', :action => 'preview' messages_actions.connect 'boards/:board_id/topics/preview', :action => 'preview'
messages_actions.connect 'boards/:board_id/topics/:id/replies', :action => 'reply' messages_actions.connect 'boards/:board_id/topics/:id/replies', :action => 'reply'
messages_actions.connect 'boards/:board_id/topics/:id/:action', :action => /edit|destroy/ messages_actions.connect 'boards/:board_id/topics/:id/edit', :action => 'edit'
messages_actions.connect 'boards/:board_id/topics/:id/destroy', :action => 'destroy'
end end
end end