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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user