Fixed error on project creation due to unrecognized route.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8192 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f1994ea9c0
commit
f9b6e57d24
|
@ -29,7 +29,7 @@ class ProjectsController < ApplicationController
|
||||||
|
|
||||||
after_filter :only => [:create, :edit, :update, :archive, :unarchive, :destroy] do |controller|
|
after_filter :only => [:create, :edit, :update, :archive, :unarchive, :destroy] do |controller|
|
||||||
if controller.request.post?
|
if controller.request.post?
|
||||||
controller.send :expire_action, :controller => 'welcome', :action => 'robots.txt'
|
controller.send :expire_action, :controller => 'welcome', :action => 'robots'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -415,6 +415,10 @@ class RoutingTest < ActionController::IntegrationTest
|
||||||
should_route :post, "/versions/1/status_by", :controller => 'versions', :action => 'status_by', :id => '1'
|
should_route :post, "/versions/1/status_by", :controller => 'versions', :action => 'status_by', :id => '1'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
context "welcome" do
|
||||||
|
should_route :get, "/robots.txt", :controller => 'welcome', :action => 'robots'
|
||||||
|
end
|
||||||
|
|
||||||
context "wiki (singular, project's pages)" do
|
context "wiki (singular, project's pages)" do
|
||||||
should_route :get, "/projects/567/wiki", :controller => 'wiki', :action => 'show', :project_id => '567'
|
should_route :get, "/projects/567/wiki", :controller => 'wiki', :action => 'show', :project_id => '567'
|
||||||
should_route :get, "/projects/567/wiki/lalala", :controller => 'wiki', :action => 'show', :project_id => '567', :id => 'lalala'
|
should_route :get, "/projects/567/wiki/lalala", :controller => 'wiki', :action => 'show', :project_id => '567', :id => 'lalala'
|
||||||
|
|
Loading…
Reference in New Issue