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:
parent
ab1137159f
commit
e2b36d1c8a
|
@ -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/preview', :action => 'preview'
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue