# HG changeset patch # User Chris Cannam # Date 1297345407 0 # Node ID 3fecad619aa355df263e2fdd0f40d5a105fbd50e # Parent ccfa5126279e9ed4761e6d67ce9648e030e2f4e8 * Ensure route requires post action diff -r ccfa5126279e -r 3fecad619aa3 config/routes.rb --- a/config/routes.rb Wed Feb 02 12:14:28 2011 +0000 +++ b/config/routes.rb Thu Feb 10 13:43:27 2011 +0000 @@ -236,7 +236,7 @@ map.with_options :controller => 'sys' do |sys| sys.connect 'sys/projects.:format', :action => 'projects', :conditions => {:method => :get} sys.connect 'sys/projects/:id/repository.:format', :action => 'create_project_repository', :conditions => {:method => :post} - sys.connect 'sys/projects/:id/embedded.:format', :action => 'set_embedded_active', :conditions => { :method => :get } #todo: should be post + sys.connect 'sys/projects/:id/embedded.:format', :action => 'set_embedded_active', :conditions => { :method => :post } end # Install the default route as the lowest priority.