1
0
Fork 0

User view

This commit is contained in:
Andrew Tomaka 2014-10-02 16:47:15 -04:00
parent df80ce9062
commit 4e9168bc5f

View file

@ -8,6 +8,15 @@
</head>
<body>
<div>
<% if current_user %>
Welcome, <%= current_user.name %>!
<%= link_to 'Logout', logout_path, id: 'logout' %>
<% else %>
<%= link_to 'Login with Google', '/auth/google_oauth2', id: 'login' %>
<% end %>
</div>
<%= yield %>
</body>