Redirect_to_url Deperecated
Silently dropped, more precisely, from Rails 2.2. Just use redirect_to instead.
This commit is contained in:
parent
daa12e575d
commit
3efc067f06
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ class ApplicationController < ActionController::Base
|
||||||
if web
|
if web
|
||||||
redirect_to_page('HomePage', web)
|
redirect_to_page('HomePage', web)
|
||||||
else
|
else
|
||||||
redirect_to_url '/'
|
redirect_to '/'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ class ApplicationController < ActionController::Base
|
||||||
else
|
else
|
||||||
logger.debug("Session ##{session.object_id}: " +
|
logger.debug("Session ##{session.object_id}: " +
|
||||||
"redirect to the last remembered URL #{redirect_target}")
|
"redirect to the last remembered URL #{redirect_target}")
|
||||||
redirect_to_url(redirect_target)
|
redirect_to(redirect_target)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue