diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application.rb | 4 | ||||
-rw-r--r-- | app/controllers/request_controller.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 1181e6ad6..e86fe7338 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: application.rb,v 1.14 2007-10-15 22:38:27 louise Exp $ +# $Id: application.rb,v 1.15 2007-10-16 21:17:14 louise Exp $ class ApplicationController < ActionController::Base @@ -91,7 +91,7 @@ class ApplicationController < ActionController::Base unless session[:user] session[:intended_uri] = @request.request_uri session[:intended_params] = params - redirect_to :controller => 'user', :action => "signin" + redirect_to signin_url return false end return true diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 48dea8e54..dfc614e59 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_controller.rb,v 1.4 2007-10-16 07:11:13 francis Exp $ +# $Id: request_controller.rb,v 1.5 2007-10-16 21:17:14 louise Exp $ class RequestController < ApplicationController @@ -42,7 +42,7 @@ class RequestController < ApplicationController @info_request.user = authenticated_user @info_request.save flash[:notice] = "Your Freedom of Information request has been created." - redirect_to :controller => 'request', :action => "show", :id => @info_request + redirect_to request_url(:id => @info_request) end # Save both models |