Skip to content

Commit

Permalink
add devise return path
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismail Akbudak committed Aug 19, 2015
1 parent 7c55b0e commit 952a035
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
13 changes: 13 additions & 0 deletions templates/app/controllers/hq/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
class Hq::SessionsController < Devise::SessionsController
layout 'login'

private

# Overwriting the sign_out redirect path method
def after_sign_in_path_for(resource_or_scope)
hq_root_path
end

# Overwriting the sign_out redirect path method
def after_sign_out_path_for(resource_or_scope)
new_admin_session_path
end

end
14 changes: 7 additions & 7 deletions templates/config/locales/view.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ en:
not_found: "Sory! Page not found. This page should be moved!"
devise:
session:
title: Giriş
button: Giriş Yap
remember_me: Beni Hatırla
title: Login
button: Login
remember_me: Remember Me
registration:
title: '%{model} Giriş Bilgilerini Güncelle'
waiting_confirmation: 'E-posta addresi onayı için bekleniyor: %{email}'
hint_password: Değiştirmek istemiyorsanız boş bırakınız
hint_current_password: Değişiklikleri onaylamak için şuan ki şifrenizi girmelisiniz
title: '%{model} Update Login Information'
waiting_confirmation: 'Currently waiting confirmation for: %{email}'
hint_password: Leave it blank if you don't want to change it
hint_current_password: We need your current password to confirm your changes
new:
title: '%{model} New Registration'
character_hint: '%{length} characters minimum'
Expand Down

1 comment on commit 952a035

@tayfunoziserikan
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.