Refactor: move NewsController#add_comment to CommentsController#create

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4170 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis committed 2010-09-22 16:25:09 +00:00
1 parent 3b20774c54
commit 1f2f953687
8 files changed
+83 -36

No files matched your search

+2
View File
@@ -152,6 +152,8 @@ ActionController::Routing::Routes.draw do |map|
news_actions.connect 'news/:id/destroy', :action => 'destroy'
end
news_routes.connect 'news/:id/edit', :action => 'update', :conditions => {:method => :put}
news_routes.connect 'news/:id/comments', :controller => 'comments', :action => 'create', :conditions => {:method => :post}
end
map.connect 'projects/:id/members/new', :controller => 'members', :action => 'new'