Refactor: split NewsController#new into #new and #create methods.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4163 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2010-09-20 15:13:48 +00:00
parent 1a4f5e87f2
commit 3bc29e29e0
7 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ ActionController::Routing::Routes.draw do |map|
news_views.connect 'news/:id/edit', :action => 'edit'
end
news_routes.with_options do |news_actions|
news_actions.connect 'projects/:project_id/news', :action => 'new'
news_actions.connect 'projects/:project_id/news', :action => 'create', :conditions => {:method => :post}
news_actions.connect 'news/:id/edit', :action => 'edit'
news_actions.connect 'news/:id/destroy', :action => 'destroy'
end