Added "devise" for authentication.

This commit is contained in:
Christoph Haas 2015-07-15 17:06:32 +02:00
parent e6a0f15340
commit 35eb83448e
11 changed files with 410 additions and 30 deletions

View file

@ -0,0 +1,6 @@
- if user_signed_in?
p Welcome #{current_user.email}
= link_to 'Logged In [click to logout]', destroy_user_session_path, :method => :delete
- else
p You are not signed in.
= link_to 'Login', new_user_session_path