1
0
Fork 0
forked from OpenNeo/impress

add ?return_to to login urls

This commit is contained in:
Emi Matchu 2010-10-18 18:17:08 -04:00
parent db99f70255
commit bfb53ee81f
2 changed files with 5 additions and 1 deletions

View file

@ -13,4 +13,8 @@ module ApplicationHelper
content_tag 'p', value, :class => key
end
end
def login_path_with_return_to
login_path :return_to => request.request_uri
end
end

View file

@ -24,7 +24,7 @@
== You have #{current_user.points} points.
= link_to 'Log out', logout_path
- else
= link_to login_path, :id => 'userbar-log-in' do
= link_to login_path_with_return_to, :id => 'userbar-log-in' do
= image_tag auth_server_icon_url
%span Log in
#footer