diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-20 15:13:48 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-20 15:13:48 +0000 |
commit | 3bc29e29e091b56bcffeb07ffb9c37c328525f99 (patch) | |
tree | c10fba5f35f636f74683aac8ee0d2840b2a17308 /config | |
parent | 1a4f5e87f2839fa2260deefd4d9a5c992ef860fe (diff) | |
download | redmine-3bc29e29e091b56bcffeb07ffb9c37c328525f99.tar.gz redmine-3bc29e29e091b56bcffeb07ffb9c37c328525f99.zip |
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
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 062bb586e..ceaaf6219 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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 |